From ff4e258ba250cb00d19b8633379db4dab20a76c2 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 28 Jan 2014 19:58:58 +0100 Subject: bool improvements Change-Id: I6caec041ce671aeeb9de86ea620774fb2e28f765 --- xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx | 4 ++-- xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xmlscript/source') diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx index 00d575ef8075..74022042290c 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx @@ -81,7 +81,7 @@ void ElementDescriptor::readMultiPageModel( StyleBag * all_styles ) readDefaults(); readLongAttr( "MultiPageValue", XMLNS_DIALOGS_PREFIX ":value" ); Any aDecorationAny( _xProps->getPropertyValue( "Decoration" ) ); - bool bDecoration = sal_True; + bool bDecoration = true; if ( (aDecorationAny >>= bDecoration) && !bDecoration ) addAttribute( XMLNS_DIALOGS_PREFIX ":withtabs", "false" ); @@ -1057,7 +1057,7 @@ void ElementDescriptor::readDialogModel( StyleBag * all_styles ) readScrollableSettings(); Any aDecorationAny( _xProps->getPropertyValue( "Decoration" ) ); - bool bDecoration = sal_False; + bool bDecoration = false; if ( (aDecorationAny >>= bDecoration) && !bDecoration ) addAttribute( XMLNS_DIALOGS_PREFIX ":withtitlebar", "false" ); readImageURLAttr( "ImageURL", XMLNS_DIALOGS_PREFIX ":image-src" ); diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx index ef41489e5434..a3dc9ec9a3ce 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_import.cxx @@ -281,7 +281,7 @@ bool StyleElement::importVisualEffectStyle( _visualEffect = awt::VisualEffect::FLAT; } else - OSL_ASSERT( 0 ); + OSL_ASSERT( false ); _hasValue |= 0x40; xProps->setPropertyValue( "VisualEffect", makeAny(_visualEffect) ); -- cgit