[Libreoffice-commits] core.git: sc/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Feb 16 12:23:16 UTC 2019
sc/source/ui/dbgui/dbnamdlg.cxx | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
New commits:
commit 15ec3e8093e9cf8e0119c839ae691629d3a1297a
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sun Feb 10 18:17:20 2019 +0100
Commit: Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Sat Feb 16 13:22:53 2019 +0100
Use optimized OUString concatenation
Change-Id: I931290d8c4136f772677ffe1b8c8de29d1c4f67a
Reviewed-on: https://gerrit.libreoffice.org/67659
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
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())
{
More information about the Libreoffice-commits
mailing list