summaryrefslogtreecommitdiff
path: root/framework/source/uielement/generictoolbarcontroller.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'framework/source/uielement/generictoolbarcontroller.cxx')
-rw-r--r--framework/source/uielement/generictoolbarcontroller.cxx12
1 files changed, 3 insertions, 9 deletions
diff --git a/framework/source/uielement/generictoolbarcontroller.cxx b/framework/source/uielement/generictoolbarcontroller.cxx
index 0049006c9099..31b02118b2c9 100644
--- a/framework/source/uielement/generictoolbarcontroller.cxx
+++ b/framework/source/uielement/generictoolbarcontroller.cxx
@@ -209,21 +209,15 @@ void GenericToolbarController::statusChanged( const FeatureStateEvent& Event )
// Replacement for place holders
if ( aStrValue.startsWith("($1)") )
{
- OUString aTmp(FwkResId(STR_UPDATEDOC));
- aTmp += " " + aStrValue.copy( 4 );
- aStrValue = aTmp;
+ aStrValue = FwkResId(STR_UPDATEDOC) + " " + aStrValue.copy( 4 );
}
else if ( aStrValue.startsWith("($2)") )
{
- OUString aTmp(FwkResId(STR_CLOSEDOC_ANDRETURN));
- aTmp += aStrValue.copy( 4 );
- aStrValue = aTmp;
+ aStrValue = FwkResId(STR_CLOSEDOC_ANDRETURN) + aStrValue.copy( 4 );
}
else if ( aStrValue.startsWith("($3)") )
{
- OUString aTmp(FwkResId(STR_SAVECOPYDOC));
- aTmp += aStrValue.copy( 4 );
- aStrValue = aTmp;
+ aStrValue = FwkResId(STR_SAVECOPYDOC) + aStrValue.copy( 4 );
}
m_pToolbar->SetItemText( m_nID, aStrValue );
m_pToolbar->SetQuickHelpText( m_nID, aStrValue );