sc/source/ui/docshell/docfunc.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
New commits: commit 7410628fa69c4a0f2202caced766b3de58b62b04 Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sun Feb 10 18:14:08 2019 +0100 Commit: Markus Mohrhard <markus.mohrh...@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.mohrh...@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, _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits