diff options
Diffstat (limited to 'vcl/source/window/mnemonic.cxx')
-rw-r--r-- | vcl/source/window/mnemonic.cxx | 6 |
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 ) { |