From b83dfcb88b77fe9adfc036cd94c9c09ddc2b7468 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 25 Feb 2014 14:59:16 +0100 Subject: loplugin:literaltoboolconversion Change-Id: I74bd9af6936f00fb26273606f7924f99ee7767d3 --- vcl/osx/a11ytextattributeswrapper.mm | 2 +- vcl/osx/a11ywrapper.mm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/osx/a11ytextattributeswrapper.mm b/vcl/osx/a11ytextattributeswrapper.mm index 339103740be0..e129ac927f4e 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 da7f202ff62e..4e19e1d2cbce 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; } -- cgit