summaryrefslogtreecommitdiff
path: root/framework/source/uielement/headermenucontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement/headermenucontroller.cxx')
-rw-r--r--framework/source/uielement/headermenucontroller.cxx11
1 files changed, 5 insertions, 6 deletions
diff --git a/framework/source/uielement/headermenucontroller.cxx b/framework/source/uielement/headermenucontroller.cxx
index f8c76fb8d8c1..7fc2259ef553 100644
--- a/framework/source/uielement/headermenucontroller.cxx
+++ b/framework/source/uielement/headermenucontroller.cxx
@@ -127,10 +127,10 @@ void HeaderMenuController::fillPopupMenu( const Reference< css::frame::XModel >&
xPropSet->getPropertyValue( aDisplayNameStr ) >>= aDisplayName;
xPropSet->getPropertyValue( aHeaderFooterIsOnStr ) >>= bHeaderIsOn;
- OUStringBuffer aStrBuf( aCmd );
- aStrBuf.append( "?PageStyle:string=");
- aStrBuf.append( aDisplayName );
- aStrBuf.append( "&On:bool=" );
+ OUStringBuffer aStrBuf( aCmd
+ + "?PageStyle:string="
+ + aDisplayName
+ + "&On:bool=" );
if ( !bHeaderIsOn )
aStrBuf.append( "true" );
else
@@ -161,8 +161,7 @@ void HeaderMenuController::fillPopupMenu( const Reference< css::frame::XModel >&
// Insert special item for all command
rPopupMenu->insertItem(ALL_MENUITEM_ID, FwkResId(STR_MENU_HEADFOOTALL), 0, 0);
- OUStringBuffer aStrBuf( aCmd );
- aStrBuf.append( "?On:bool=" );
+ OUStringBuffer aStrBuf( aCmd + "?On:bool=" );
// Command depends on check state of first menu item entry
if ( !bFirstChecked )