summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2017-06-18 18:53:56 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-06-18 19:41:58 +0200
commita8167698ede371cde996c963333e1a2fd292642d (patch)
tree1eb514e956118be84d751a9d7bc06c6458e5c5c0 /sal
parentbca760c294c256fcb1fd3649dbf50f61a4bda474 (diff)
Fix TB
Include cassert and fix assert logical, we do want to have an handler here. Following https://cgit.freedesktop.org/libreoffice/core/commit/?id=bca760c294c256fcb1fd3649dbf50f61a4bda474 Change-Id: I5ec7c399469a5674f0bc455fc3233c3421cc491f Reviewed-on: https://gerrit.libreoffice.org/38933 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sal')
-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 a97dbd8e862c..816f20a2c808 100644
--- a/sal/osl/all/signalshared.cxx
+++ b/sal/osl/all/signalshared.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <cassert>
#include <sal/config.h>
#include <signalshared.hxx>
@@ -67,7 +68,7 @@ oslSignalAction callSignalHandler(oslSignalInfo* pInfo)
oslSignalHandler SAL_CALL osl_addSignalHandler(oslSignalHandlerFunction handler, void* pData)
{
- assert(!handler);
+ assert(handler);
if (!handler)
return nullptr;
@@ -97,7 +98,7 @@ oslSignalHandler SAL_CALL osl_addSignalHandler(oslSignalHandlerFunction handler,
sal_Bool SAL_CALL osl_removeSignalHandler(oslSignalHandler handler)
{
- assert(!handler);
+ assert(handler);
if (!bInitSignal)
bInitSignal = initSignal();