Kaydet (Commit) 6f967e34 authored tarafından Çağrı Dolaz's avatar Çağrı Dolaz Kaydeden (comit) Muhammet Kara

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: 's avatarMuhammet Kara <muhammet.kara@collabora.com>
üst ad65d8e7
...@@ -710,10 +710,8 @@ LibInfo::Item::~Item () ...@@ -710,10 +710,8 @@ LibInfo::Item::~Item ()
static bool QueryDel(const OUString& rName, const OUString &rStr, weld::Widget* pParent) static bool QueryDel(const OUString& rName, const OUString &rStr, weld::Widget* pParent)
{ {
OUStringBuffer aNameBuf( rName ); OUString aName = "\'" + rName + "\'";
aNameBuf.append('\''); OUString aQuery = rStr.replaceAll("XX", aName);
aNameBuf.insert(0, '\'');
OUString aQuery = rStr.replaceAll("XX", aNameBuf.makeStringAndClear());
std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(pParent, std::unique_ptr<weld::MessageDialog> xQueryBox(Application::CreateMessageDialog(pParent,
VclMessageType::Question, VclButtonsType::YesNo, aQuery)); VclMessageType::Question, VclButtonsType::YesNo, aQuery));
return (xQueryBox->run() == RET_YES); return (xQueryBox->run() == RET_YES);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment