Kaydet (Commit) bca760c2 authored tarafından Chris Sherlock's avatar Chris Sherlock

tdf#43157 - osl: convert OSL_ASSERTs to assert in signalshared.cxx

Change-Id: I690ea82e41bb3e632909193550009721360a9f76
Reviewed-on: https://gerrit.libreoffice.org/38697Reviewed-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
Tested-by: 's avatarChris Sherlock <chris.sherlock79@gmail.com>
üst 1f4d7fc8
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment