summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-10-15 16:39:06 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-10-16 08:46:50 +0200
commite2d82611088677f8ec9f038639567f2d7c699b5e (patch)
treef1d8e738dca824def9d9ea7d71ae192125964645 /sw
parente042a83843ed2573dbce9338058b3dc545dd6898 (diff)
convert some Buffer.append to +
by hand, because I don't feel like teaching this specific idiom to the plugin Change-Id: If400677dac842ca740c4532ed79f6f18f752b730 Reviewed-on: https://gerrit.libreoffice.org/80842 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/ribbar/inputwin.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/sw/source/uibase/ribbar/inputwin.cxx b/sw/source/uibase/ribbar/inputwin.cxx
index ff4e9c16514f..91bffa18df6a 100644
--- a/sw/source/uibase/ribbar/inputwin.cxx
+++ b/sw/source/uibase/ribbar/inputwin.cxx
@@ -494,9 +494,7 @@ void InputEdit::UpdateRange(const OUString& rBoxes,
const sal_uInt16 nLen = aActText.getLength();
if( !nLen )
{
- OUString aStr = OUStringBuffer().
- append(cOpen).append(aBoxes).append(cClose).
- makeStringAndClear();
+ OUString aStr = OUStringLiteral1(cOpen) + aBoxes + OUStringLiteral1(cClose);
SetText(aStr);
sal_Int32 nPos = aStr.indexOf( cClose );
OSL_ENSURE(nPos != -1, "delimiter not found");
@@ -545,9 +543,7 @@ void InputEdit::UpdateRange(const OUString& rBoxes,
}
else
{
- OUString aTmp = OUStringBuffer().
- append(cOpen).append(aBoxes).append(cClose).
- makeStringAndClear();
+ OUString aTmp = OUStringLiteral1(cOpen) + aBoxes + OUStringLiteral1(cClose);
nPos = static_cast<sal_uInt16>(aSelection.Min());
aActText = aActText.replaceAt( nPos, 0, aTmp );
nPos = nPos + aTmp.getLength();