diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-07-09 08:50:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-07-13 18:14:11 +0200 |
commit | cbce40e965acef51822b31d73da5fbc271fbcad0 (patch) | |
tree | bad77c67c68055f7597b8ecf1df1b74e778873cf /tools | |
parent | 429280541ff1fbbbf3f0482211a659c96c3347d2 (diff) |
Make content of OSL_ASSERT, DBG_ASSERT, etc. visiblie in non-debug builds
...to avoid lots of loplugin:staticmethods warnings. Also enables DBG_ASSERT
etc. also for --enable-debug builds in addition to --enable-dbgutil builds.
Change-Id: Ib89ecd9ab8ce7abb2c64790ace248b31f9d2b64d
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/ref/pstm.cxx | 2 | ||||
-rw-r--r-- | tools/source/stream/stream.cxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/source/ref/pstm.cxx b/tools/source/ref/pstm.cxx index eec07612f3f3..71b4d9266ce3 100644 --- a/tools/source/ref/pstm.cxx +++ b/tools/source/ref/pstm.cxx @@ -281,9 +281,11 @@ sal_uInt32 SvPersistStream::WriteDummyLen() sal_uInt32 n0 = 0; WriteUInt32( n0 ); // Because of Sun sp // Don't assert on stream error +#ifdef DBG_UTIL DBG_ASSERT( GetError() != SVSTREAM_OK || (sizeof( sal_uInt32 ) == Tell() -nPos), "No 4 byte as length parameter" ); +#endif return Tell(); } diff --git a/tools/source/stream/stream.cxx b/tools/source/stream/stream.cxx index 8cda7c3bd8d2..c1d21dad9da1 100644 --- a/tools/source/stream/stream.cxx +++ b/tools/source/stream/stream.cxx @@ -1623,7 +1623,9 @@ bool SvStream::SetStreamSize(sal_uInt64 const nSize) SetBufferSize( 0 ); SetSize( nSize ); SetBufferSize( nBuf ); +#ifdef DBG_UTIL DBG_ASSERT(Tell()==nFPos,"SetStreamSize failed"); +#endif return (nError == 0); } |