[Libreoffice-commits] core.git: sal/osl

Julien Nabet serval2412 at yahoo.fr
Sun Jun 18 17:42:23 UTC 2017


 sal/osl/all/signalshared.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit a8167698ede371cde996c963333e1a2fd292642d
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Sun Jun 18 18:53:56 2017 +0200

    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 at yahoo.fr>
    Tested-by: Julien Nabet <serval2412 at yahoo.fr>

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();


More information about the Libreoffice-commits mailing list