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 <muhammet.kara@collabora.com>
diff --git a/basctl/source/basicide/bastypes.cxx b/basctl/source/basicide/bastypes.cxx
index 6aef236..5ffbfbf 100644
--- a/basctl/source/basicide/bastypes.cxx
+++ b/basctl/source/basicide/bastypes.cxx
@@ -710,10 +710,8 @@

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);