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

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


 sc/source/ui/docshell/docfunc.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 7410628fa69c4a0f2202caced766b3de58b62b04
Author:     Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 18:14:08 2019 +0100
Commit:     Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Sat Feb 16 13:21:29 2019 +0100

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

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,


More information about the Libreoffice-commits mailing list