basctl/source/basicide/bastypes.cxx |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 6f967e3403c6675bbaf2c17dcadf7e640dd719ca
Author:     Çağrı Dolaz <[email protected]>
AuthorDate: Sun Dec 30 13:35:48 2018 +0200
Commit:     Muhammet Kara <[email protected]>
CommitDate: Sun Dec 30 14:43:43 2018 +0100

    tdf#112689: Replace chained O(U)StringBuffer::append() with operator+
    
    Change-Id: I0ccf939f44c4f9570a9987d06369294927c765d2
    Reviewed-on: https://gerrit.libreoffice.org/65739
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <[email protected]>

diff --git a/basctl/source/basicide/bastypes.cxx 
b/basctl/source/basicide/bastypes.cxx
index 6aef236e50a3..5ffbfbfd302d 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -710,10 +710,8 @@ LibInfo::Item::~Item ()
 
 static bool QueryDel(const OUString& rName, const OUString &rStr, 
weld::Widget* pParent)
 {
-    OUStringBuffer aNameBuf( rName );
-    aNameBuf.append('\'');
-    aNameBuf.insert(0, '\'');
-    OUString aQuery = rStr.replaceAll("XX", aNameBuf.makeStringAndClear());
+    OUString aName = "\'" + rName + "\'";
+    OUString aQuery = rStr.replaceAll("XX", aName);
     std::unique_ptr<weld::MessageDialog> 
xQueryBox(Application::CreateMessageDialog(pParent,
                                                    VclMessageType::Question, 
VclButtonsType::YesNo, aQuery));
     return (xQueryBox->run() == RET_YES);
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to