diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-08-12 20:43:11 +0200 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2018-09-09 21:07:49 +0200 |
commit | e3f3ce96d000c86d8f79d64ef99f07b2a60aa7ee (patch) | |
tree | 7a3f87e7c679570dca1a89ea9e1e3d6a920c4a95 | |
parent | 0e68209fe3e6dec0d6f5ecf919ceecd91d962129 (diff) |
OUString: use optimized concatenation, make const
Change-Id: I8b4f6d47852c2a42c55723c3a0757f2c144f6ef2
-rw-r--r-- | sc/source/ui/miscdlgs/anyrefdg.cxx | 6 |
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 ) ); } } |