diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-06-12 21:55:38 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-06-18 18:13:32 +0200 |
commit | bca760c294c256fcb1fd3649dbf50f61a4bda474 (patch) | |
tree | 97f8394a05de539eac78ab718c08cdfcd83e9e38 | |
parent | 1f4d7fc8618828222d7f4447daed4c3361edeea6 (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.cxx | 5 |
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(); |