diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-02-10 18:17:20 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2019-02-16 13:22:53 +0100 |
commit | 15ec3e8093e9cf8e0119c839ae691629d3a1297a (patch) | |
tree | a1d7dfbe23a65f4707e15c4dad64bf5674d2768c /sc/source/ui/dbgui/dbnamdlg.cxx | |
parent | fe39c4dcc6cdf6d00cf893b24b74efb1cd06bde6 (diff) |
Use optimized OUString concatenation
Change-Id: I931290d8c4136f772677ffe1b8c8de29d1c4f67a
Reviewed-on: https://gerrit.libreoffice.org/67659
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'sc/source/ui/dbgui/dbnamdlg.cxx')
-rw-r--r-- | sc/source/ui/dbgui/dbnamdlg.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/ui/dbgui/dbnamdlg.cxx b/sc/source/ui/dbgui/dbnamdlg.cxx index 581234369dac..067666be2152 100644 --- a/sc/source/ui/dbgui/dbnamdlg.cxx +++ b/sc/source/ui/dbgui/dbnamdlg.cxx @@ -528,14 +528,10 @@ IMPL_LINK_NOARG(ScDbNameDlg, RemoveBtnHdl, Button*, void) if (itr != rDBs.end()) { OUString aStrDelMsg = ScResId( STR_QUERY_DELENTRY ); - - OUStringBuffer aBuf; - aBuf.append(aStrDelMsg.getToken(0, '#')); - aBuf.append(aStrEntry); - aBuf.append(aStrDelMsg.getToken(1, '#')); + OUString sMsg{ aStrDelMsg.getToken(0, '#') + aStrEntry + aStrDelMsg.getToken(1, '#') }; std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Question, VclButtonsType::YesNo, - aBuf.makeStringAndClear())); + sMsg)); xQueryBox->set_default_response(RET_YES); if (RET_YES == xQueryBox->run()) { |