sc/source/ui/dbgui/dbnamdlg.cxx |    8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

New commits:
commit 15ec3e8093e9cf8e0119c839ae691629d3a1297a
Author:     Matteo Casalin <[email protected]>
AuthorDate: Sun Feb 10 18:17:20 2019 +0100
Commit:     Markus Mohrhard <[email protected]>
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 <[email protected]>

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())
         {
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to