diff options
author | Eike Rathke <erack@redhat.com> | 2015-03-10 20:35:30 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2015-03-10 20:45:09 +0100 |
commit | 71b630e5b683b3761af9d6bdce56f13f20da84c1 (patch) | |
tree | e284168ddc1732843fadee3d2a5bb0ef8a97dd23 /sc | |
parent | b7e1bfefeef372834d4b335820d654e0557c6834 (diff) |
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
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/xestream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xestream.cxx b/sc/source/filter/excel/xestream.cxx index f104db20e63f..ba83118740cb 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(); |