[Libreoffice-commits] core.git: sc/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Feb 16 12:22:30 UTC 2019


 sc/source/ui/docshell/docsh4.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit fe39c4dcc6cdf6d00cf893b24b74efb1cd06bde6
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 18:13:53 2019 +0100
Commit:     Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Sat Feb 16 13:22:10 2019 +0100

    Use optimized string concatenation
    
    Change-Id: I88499f04630b3a3ee507408435cfbd293a16fba3
    Reviewed-on: https://gerrit.libreoffice.org/67655
    Tested-by: Jenkins
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

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,


More information about the Libreoffice-commits mailing list