[Libreoffice-commits] core.git: vcl/osx

Stephan Bergmann sbergman at redhat.com
Tue Feb 25 06:00:02 PST 2014


 vcl/osx/a11ytextattributeswrapper.mm |    2 +-
 vcl/osx/a11ywrapper.mm               |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit b83dfcb88b77fe9adfc036cd94c9c09ddc2b7468
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Feb 25 14:59:16 2014 +0100

    loplugin:literaltoboolconversion
    
    Change-Id: I74bd9af6936f00fb26273606f7924f99ee7767d3

diff --git a/vcl/osx/a11ytextattributeswrapper.mm b/vcl/osx/a11ytextattributeswrapper.mm
index 3391037..e129ac92 100644
--- a/vcl/osx/a11ytextattributeswrapper.mm
+++ b/vcl/osx/a11ytextattributeswrapper.mm
@@ -152,7 +152,7 @@ using namespace ::rtl;
 
 +(BOOL)convertBoolean:(PropertyValue)property {
     BOOL myBoolean = NO;
-    bool value = sal_False;
+    bool value = false;
     property.Value >>= value;
     if ( value ) {
         myBoolean = YES;
diff --git a/vcl/osx/a11ywrapper.mm b/vcl/osx/a11ywrapper.mm
index da7f202..4e19e1d 100644
--- a/vcl/osx/a11ywrapper.mm
+++ b/vcl/osx/a11ywrapper.mm
@@ -310,7 +310,7 @@ static std::ostream &operator<<(std::ostream &s, NSPoint point) {
     } catch (const Exception&) {
     }
 
-    OSL_ASSERT( 0 );
+    OSL_ASSERT( false );
     return nil;
 }
 


More information about the Libreoffice-commits mailing list