Kaydet (Commit) ff4e258b authored tarafından Stephan Bergmann's avatar Stephan Bergmann

bool improvements

Change-Id: I6caec041ce671aeeb9de86ea620774fb2e28f765
üst 25570b18
...@@ -81,7 +81,7 @@ void ElementDescriptor::readMultiPageModel( StyleBag * all_styles ) ...@@ -81,7 +81,7 @@ void ElementDescriptor::readMultiPageModel( StyleBag * all_styles )
readDefaults(); readDefaults();
readLongAttr( "MultiPageValue", XMLNS_DIALOGS_PREFIX ":value" ); readLongAttr( "MultiPageValue", XMLNS_DIALOGS_PREFIX ":value" );
Any aDecorationAny( _xProps->getPropertyValue( "Decoration" ) ); Any aDecorationAny( _xProps->getPropertyValue( "Decoration" ) );
bool bDecoration = sal_True; bool bDecoration = true;
if ( (aDecorationAny >>= bDecoration) && !bDecoration ) if ( (aDecorationAny >>= bDecoration) && !bDecoration )
addAttribute( XMLNS_DIALOGS_PREFIX ":withtabs", "false" ); addAttribute( XMLNS_DIALOGS_PREFIX ":withtabs", "false" );
...@@ -1057,7 +1057,7 @@ void ElementDescriptor::readDialogModel( StyleBag * all_styles ) ...@@ -1057,7 +1057,7 @@ void ElementDescriptor::readDialogModel( StyleBag * all_styles )
readScrollableSettings(); readScrollableSettings();
Any aDecorationAny( _xProps->getPropertyValue( "Decoration" ) ); Any aDecorationAny( _xProps->getPropertyValue( "Decoration" ) );
bool bDecoration = sal_False; bool bDecoration = false;
if ( (aDecorationAny >>= bDecoration) && !bDecoration ) if ( (aDecorationAny >>= bDecoration) && !bDecoration )
addAttribute( XMLNS_DIALOGS_PREFIX ":withtitlebar", "false" ); addAttribute( XMLNS_DIALOGS_PREFIX ":withtitlebar", "false" );
readImageURLAttr( "ImageURL", XMLNS_DIALOGS_PREFIX ":image-src" ); readImageURLAttr( "ImageURL", XMLNS_DIALOGS_PREFIX ":image-src" );
......
...@@ -281,7 +281,7 @@ bool StyleElement::importVisualEffectStyle( ...@@ -281,7 +281,7 @@ bool StyleElement::importVisualEffectStyle(
_visualEffect = awt::VisualEffect::FLAT; _visualEffect = awt::VisualEffect::FLAT;
} }
else else
OSL_ASSERT( 0 ); OSL_ASSERT( false );
_hasValue |= 0x40; _hasValue |= 0x40;
xProps->setPropertyValue( "VisualEffect", makeAny(_visualEffect) ); xProps->setPropertyValue( "VisualEffect", makeAny(_visualEffect) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment