summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/ui/miscdlgs/anyrefdg.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sc/source/ui/miscdlgs/anyrefdg.cxx b/sc/source/ui/miscdlgs/anyrefdg.cxx
index 9825eeb4bab8..cc98f3d8d11e 100644
--- a/sc/source/ui/miscdlgs/anyrefdg.cxx
+++ b/sc/source/ui/miscdlgs/anyrefdg.cxx
@@ -483,12 +483,10 @@ void ScFormulaReferenceHelper::RefInputStart( formula::RefEdit* pEdit, formula::
m_sOldDialogText = m_pWindow->GetText();
if (vcl::Window *pLabel = m_pRefEdit->GetLabelWidgetForShrinkMode())
{
- OUString sLabel = pLabel->GetText();
+ const OUString sLabel = pLabel->GetText();
if (!sLabel.isEmpty())
{
- OUString sNewDialogText = m_sOldDialogText;
- sNewDialogText += ": ";
- sNewDialogText += comphelper::string::stripEnd(sLabel, ':');
+ const OUString sNewDialogText = m_sOldDialogText + ": " + comphelper::string::stripEnd(sLabel, ':');
m_pWindow->SetText( MnemonicGenerator::EraseAllMnemonicChars( sNewDialogText ) );
}
}