summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorÇağrı Dolaz <cadveri1@gmail.com>2018-12-30 13:35:48 +0200
committerMuhammet Kara <muhammet.kara@collabora.com>2018-12-30 14:43:43 +0100
commit6f967e3403c6675bbaf2c17dcadf7e640dd719ca (patch)
tree4127c76d40a2b051ac8b9074914863ca3e2276c9 /basctl
parentad65d8e7f8a8e14d65c972bd0cbec8de99aab9f8 (diff)
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>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/bastypes.cxx6
1 files 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<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(pParent,
VclMessageType::Question, VclButtonsType::YesNo, aQuery));
return (xQueryBox->run() == RET_YES);