diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 19:58:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-01-28 20:26:18 +0100 |
commit | ff4e258ba250cb00d19b8633379db4dab20a76c2 (patch) | |
tree | 0551180922a2d0ae9442eaa9a201558779e21818 /xmlscript | |
parent | bool improvements (diff) | |
download | core-ff4e258ba250cb00d19b8633379db4dab20a76c2.tar.gz core-ff4e258ba250cb00d19b8633379db4dab20a76c2.zip |
bool improvements
Change-Id: I6caec041ce671aeeb9de86ea620774fb2e28f765
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_expmodels.cxx | 4 | ||||
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_import.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
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) ); |