diff options
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 5 |
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, |