From 6f967e3403c6675bbaf2c17dcadf7e640dd719ca Mon Sep 17 00:00:00 2001 From: Çağrı Dolaz Date: Sun, 30 Dec 2018 13:35:48 +0200 Subject: 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 --- basctl/source/basicide/bastypes.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 xQueryBox(Application::CreateMessageDialog(pParent, VclMessageType::Question, VclButtonsType::YesNo, aQuery)); return (xQueryBox->run() == RET_YES); -- cgit