summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2019-02-10 18:13:53 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2019-02-16 13:22:10 +0100
commitfe39c4dcc6cdf6d00cf893b24b74efb1cd06bde6 (patch)
tree00b48a30649db86c2d6f2b4b9ed1876f1635699a /sc
parent7410628fa69c4a0f2202caced766b3de58b62b04 (diff)
Use optimized string concatenation
Change-Id: I88499f04630b3a3ee507408435cfbd293a16fba3 Reviewed-on: https://gerrit.libreoffice.org/67655 Tested-by: Jenkins Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/docsh4.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docsh4.cxx b/sc/source/ui/docshell/docsh4.cxx
index 4fba1567e8bc..20698844aa9e 100644
--- a/sc/source/ui/docshell/docsh4.cxx
+++ b/sc/source/ui/docshell/docsh4.cxx
@@ -262,9 +262,9 @@ void ScDocShell::Execute( SfxRequest& rReq )
if (!bIsNewArea)
{
OUString aTemplate = ScResId( STR_IMPORT_REPLACE );
- OUString aMessage = aTemplate.getToken( 0, '#' );
- aMessage += sTarget;
- aMessage += aTemplate.getToken( 1, '#' );
+ OUString aMessage = aTemplate.getToken( 0, '#' )
+ + sTarget
+ + aTemplate.getToken( 1, '#' );
std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(nullptr,
VclMessageType::Question, VclButtonsType::YesNo,