summaryrefslogtreecommitdiff
path: root/vcl
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 /vcl
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 'vcl')
-rw-r--r--vcl/source/window/mnemonic.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/vcl/source/window/mnemonic.cxx b/vcl/source/window/mnemonic.cxx
index 42a21c6fca07..bbe12299abc5 100644
--- a/vcl/source/window/mnemonic.cxx
+++ b/vcl/source/window/mnemonic.cxx
@@ -262,9 +262,9 @@ OUString MnemonicGenerator::CreateMnemonic( const OUString& _rKey )
if ( maMnemonics[nMnemonicIndex] )
{
maMnemonics[nMnemonicIndex] = 0;
- OUString aStr = OUStringBuffer().
- append('(').append(m_cMnemonic).append(sal_Unicode(rtl::toAsciiUpperCase(c))).
- append(')').makeStringAndClear();
+ OUString aStr = OUStringLiteral("(") + OUStringLiteral1(m_cMnemonic) +
+ OUStringLiteral1(sal_Unicode(rtl::toAsciiUpperCase(c))) +
+ ")";
nIndex = rKey.getLength();
if( nIndex >= 2 )
{