summaryrefslogtreecommitdiff
path: root/extensions/source/logging/filehandler.cxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2015-07-09 08:50:37 +0200
committerStephan Bergmann <sbergman@redhat.com>2015-07-13 18:14:11 +0200
commitcbce40e965acef51822b31d73da5fbc271fbcad0 (patch)
treebad77c67c68055f7597b8ecf1df1b74e778873cf /extensions/source/logging/filehandler.cxx
parent429280541ff1fbbbf3f0482211a659c96c3347d2 (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 'extensions/source/logging/filehandler.cxx')
-rw-r--r--extensions/source/logging/filehandler.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/extensions/source/logging/filehandler.cxx b/extensions/source/logging/filehandler.cxx
index 9f9135832f0e..7bf9611323b9 100644
--- a/extensions/source/logging/filehandler.cxx
+++ b/extensions/source/logging/filehandler.cxx
@@ -209,10 +209,8 @@ namespace logging
sal_uInt64 nBytesToWrite( _rEntry.getLength() );
sal_uInt64 nBytesWritten( 0 );
- #if OSL_DEBUG_LEVEL > 0
::osl::FileBase::RC res =
- #endif
- m_pFile->write( _rEntry.getStr(), nBytesToWrite, nBytesWritten );
+ m_pFile->write( _rEntry.getStr(), nBytesToWrite, nBytesWritten );
OSL_ENSURE( ( res == ::osl::FileBase::E_None ) && ( nBytesWritten == nBytesToWrite ),
"FileHandler::impl_writeString_nothrow: could not write the log entry!" );
}
@@ -310,10 +308,7 @@ namespace logging
OSL_PRECOND(false, "FileHandler::flush: no file!");
return;
}
- #if OSL_DEBUG_LEVEL > 0
- ::osl::FileBase::RC res =
- #endif
- m_pFile->sync();
+ ::osl::FileBase::RC res = m_pFile->sync();
OSL_ENSURE(res == ::osl::FileBase::E_None, "FileHandler::flush: Could not sync logfile to filesystem.");
}