[Libreoffice-commits] core.git: bridges/source

Stephan Bergmann sbergman at redhat.com
Fri Feb 21 12:56:31 PST 2014


 bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit a14f55e0785664d04ec74aa060e6a1bcd661f183
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Fri Feb 21 21:56:02 2014 +0100

    loplugin:implicitboolconversion, loplugin:literaltoboolconversion
    
    Change-Id: I69bf7b3cace97dc7e1e5c362321b43d38dd36536

diff --git a/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx b/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx
index 06e33de..facdcdd 100644
--- a/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx
+++ b/bridges/source/cpp_uno/gcc3_macosx_x86-64/abi.cxx
@@ -245,7 +245,7 @@ classify_argument( typelib_TypeDescriptionReference *pTypeRef, enum x86_64_reg_c
 #if OSL_DEBUG_LEVEL > 1
             OSL_TRACE( "Unhandled case: pType->eTypeClass == %d", pTypeRef->eTypeClass );
 #endif
-            OSL_ASSERT(0);
+            OSL_ASSERT(false);
     }
     return 0; /* Never reached.  */
 }
@@ -288,7 +288,7 @@ bool x86_64::examine_argument( typelib_TypeDescriptionReference *pTypeRef, bool
 #if OSL_DEBUG_LEVEL > 1
             OSL_TRACE( "Unhandled case: classes[n] == %d", classes[n] );
 #endif
-            OSL_ASSERT(0);
+            OSL_ASSERT(false);
         }
     return true;
 }
@@ -297,7 +297,7 @@ bool x86_64::return_in_hidden_param( typelib_TypeDescriptionReference *pTypeRef
 {
     int g, s;
 
-    return examine_argument( pTypeRef, true, g, s ) == 0;
+    return !examine_argument( pTypeRef, true, g, s );
 }
 
 void x86_64::fill_struct( typelib_TypeDescriptionReference *pTypeRef, const sal_uInt64 *pGPR, const double *pSSE, void *pStruct ) throw ()


More information about the Libreoffice-commits mailing list