cppu/source/typelib/typelib.cxx |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

New commits:
commit 5c4717416b7eeaf99765725785278a7437fdaf8a
Author: rohan <rohankanojia...@gmail.com>
Date:   Thu Mar 10 15:38:09 2016 +0530

    Fixed minor negation bug in SAL_WARN_IF
    
    I corrected the mistake that i did while converting OSL_ENSURE to
    SAL_WARN_IF while submitting a patch regarding removing OSL_DEBUG_LEVEL > 1
    conditionals. Thanks to Julien Nabet :)
    
    Change-Id: I374373bf151a43b1ababf4c28b509da71068f755
    Reviewed-on: https://gerrit.libreoffice.org/23112
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>
    Tested-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/cppu/source/typelib/typelib.cxx b/cppu/source/typelib/typelib.cxx
index 12fe995..ed6b79f 100644
--- a/cppu/source/typelib/typelib.cxx
+++ b/cppu/source/typelib/typelib.cxx
@@ -307,17 +307,17 @@ TypeDescriptor_Init_Impl::~TypeDescriptor_Init_Impl()
         pWeakMap = nullptr;
     }
 #if OSL_DEBUG_LEVEL > 0
-    SAL_WARN_IF( (!nTypeDescriptionCount), "cppu.typelib", 
"nTypeDescriptionCount is not zero" );
-    SAL_WARN_IF( (!nCompoundTypeDescriptionCount), "cppu.typelib", 
"nCompoundTypeDescriptionCount is not zero" );
-    SAL_WARN_IF( (!nIndirectTypeDescriptionCount), "cppu.typelib", 
"nIndirectTypeDescriptionCount is not zero" );
-    SAL_WARN_IF( (!nEnumTypeDescriptionCount), "cppu.typelib", 
"nEnumTypeDescriptionCount is not zero" );
-    SAL_WARN_IF( (!nInterfaceMethodTypeDescriptionCount), "cppu.typelib", 
"nInterfaceMethodTypeDescriptionCount is not zero" );
-    SAL_WARN_IF( (!nInterfaceAttributeTypeDescriptionCount), "cppu.typelib", 
"nInterfaceAttributeTypeDescriptionCount is not zero" );
-    SAL_WARN_IF( (!nInterfaceTypeDescriptionCount), "cppu.typelib", 
"nInterfaceTypeDescriptionCount is not zero" );
-    SAL_WARN_IF( (!nTypeDescriptionReferenceCount), "cppu.typelib", 
"nTypeDescriptionReferenceCount is not zero" );
+    SAL_WARN_IF( (nTypeDescriptionCount), "cppu.typelib", 
"nTypeDescriptionCount is not zero" );
+    SAL_WARN_IF( (nCompoundTypeDescriptionCount), "cppu.typelib", 
"nCompoundTypeDescriptionCount is not zero" );
+    SAL_WARN_IF( (nIndirectTypeDescriptionCount), "cppu.typelib", 
"nIndirectTypeDescriptionCount is not zero" );
+    SAL_WARN_IF( (nEnumTypeDescriptionCount), "cppu.typelib", 
"nEnumTypeDescriptionCount is not zero" );
+    SAL_WARN_IF( (nInterfaceMethodTypeDescriptionCount), "cppu.typelib", 
"nInterfaceMethodTypeDescriptionCount is not zero" );
+    SAL_WARN_IF( (nInterfaceAttributeTypeDescriptionCount), "cppu.typelib", 
"nInterfaceAttributeTypeDescriptionCount is not zero" );
+    SAL_WARN_IF( (nInterfaceTypeDescriptionCount), "cppu.typelib", 
"nInterfaceTypeDescriptionCount is not zero" );
+    SAL_WARN_IF( (nTypeDescriptionReferenceCount), "cppu.typelib", 
"nTypeDescriptionReferenceCount is not zero" );
 #endif
 
-    SAL_WARN_IF( (!pCallbacks || pCallbacks->empty()), "cppu.typelib", 
"pCallbacks is not NULL or empty" );
+    SAL_WARN_IF( (pCallbacks && !pCallbacks->empty()), "cppu.typelib", 
"pCallbacks is not NULL or empty" );
     delete pCallbacks;
     pCallbacks = nullptr;
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to