summaryrefslogtreecommitdiff
path: root/sc/source/ui
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-10 18:14:08 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2019-02-16 13:21:29 +0100
commit7410628fa69c4a0f2202caced766b3de58b62b04 (patch)
treef74571b2f7fb98e2d24dbbf8e18aa7db3ece1f7d /sc/source/ui
parent0bfbd186cc1c8bb5332209eadb7efa58d13e2e66 (diff)
Use optimized string concatenation
Change-Id: I66df8c63fb2d35b923faa5b586f60c92bd9a3a8b Reviewed-on: https://gerrit.libreoffice.org/67656 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 1965e4c9067f..9e69ee18f0ea 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -5117,10 +5117,7 @@ void ScDocFunc::CreateOneName( ScRangeName& rList,
else
{
OUString aTemplate = ScResId( STR_CREATENAME_REPLACE );
-
- OUString aMessage = aTemplate.getToken( 0, '#' );
- aMessage += aName;
- aMessage += aTemplate.getToken( 1, '#' );
+ OUString aMessage = aTemplate.getToken( 0, '#' ) + aName + aTemplate.getToken( 1, '#' );
vcl::Window* pWin = ScDocShell::GetActiveDialogParent();
std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr,