summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2017-06-12 21:55:38 +1000
committerChris Sherlock <chris.sherlock79@gmail.com>2017-06-18 18:13:32 +0200
commitbca760c294c256fcb1fd3649dbf50f61a4bda474 (patch)
tree97f8394a05de539eac78ab718c08cdfcd83e9e38
parent1f4d7fc8618828222d7f4447daed4c3361edeea6 (diff)
tdf#43157 - osl: convert OSL_ASSERTs to assert in signalshared.cxx
Change-Id: I690ea82e41bb3e632909193550009721360a9f76 Reviewed-on: https://gerrit.libreoffice.org/38697 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
-rw-r--r--sal/osl/all/signalshared.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/sal/osl/all/signalshared.cxx b/sal/osl/all/signalshared.cxx
index 6865f0cacbcc..a97dbd8e862c 100644
--- a/sal/osl/all/signalshared.cxx
+++ b/sal/osl/all/signalshared.cxx
@@ -67,7 +67,8 @@ oslSignalAction callSignalHandler(oslSignalInfo* pInfo)
oslSignalHandler SAL_CALL osl_addSignalHandler(oslSignalHandlerFunction handler, void* pData)
{
- OSL_ASSERT(handler != nullptr);
+ assert(!handler);
+
if (!handler)
return nullptr;
@@ -96,7 +97,7 @@ oslSignalHandler SAL_CALL osl_addSignalHandler(oslSignalHandlerFunction handler,
sal_Bool SAL_CALL osl_removeSignalHandler(oslSignalHandler handler)
{
- OSL_ASSERT(handler != nullptr);
+ assert(!handler);
if (!bInitSignal)
bInitSignal = initSignal();