[Libreoffice-commits] core.git: sc/source

Eike Rathke erack at redhat.com
Tue Mar 10 12:45:52 PDT 2015


 sc/source/filter/excel/xestream.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 71b630e5b683b3761af9d6bdce56f13f20da84c1
Author: Eike Rathke <erack at redhat.com>
Date:   Tue Mar 10 20:35:30 2015 +0100

    replace an OSL_ENSURE() with assert(), tdf#89319 related
    
    Commit 8e2293e06adba3f22e824acad99983fb5b997e4d changed
    STREAM_SEEK_TO_END logic, ensure that in a dbgutil build we catch
    unnoticed corner cases with assert() instead of just another fly-by
    warning.
    
    Change-Id: If6c4fb4d2467f7dc7b8177caf7353d0b0e56ed0d

diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx
index f104db2..ba83118 100644
--- a/sc/source/filter/excel/xestream.cxx
+++ b/sc/source/filter/excel/xestream.cxx
@@ -382,7 +382,7 @@ sal_uInt64 XclExpStream::SetSvStreamPos(sal_uInt64 const nPos)
 
 void XclExpStream::InitRecord( sal_uInt16 nRecId )
 {
-    OSL_ENSURE( mrStrm.remainingSize() == 0, "XclExpStream::InitRecord - not in end position" );
+    assert(mrStrm.remainingSize() == 0);    // stream must be at end position
     mrStrm.WriteUInt16( nRecId );
 
     mnLastSizePos = mrStrm.Tell();


More information about the Libreoffice-commits mailing list