summaryrefslogtreecommitdiff
path: root/vcl/qa/cppunit/mnemonic.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/qa/cppunit/mnemonic.cxx')
-rw-r--r--vcl/qa/cppunit/mnemonic.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vcl/qa/cppunit/mnemonic.cxx b/vcl/qa/cppunit/mnemonic.cxx
index 59456503b54f..ed4c8a86f61e 100644
--- a/vcl/qa/cppunit/mnemonic.cxx
+++ b/vcl/qa/cppunit/mnemonic.cxx
@@ -40,14 +40,14 @@ void VclMnemonicTest::testMnemonic()
}
{
- const sal_Unicode TEST[] = { 0x4E00, 'b' };
- OUString sResult = aGenerator.CreateMnemonic(OUString(TEST, SAL_N_ELEMENTS(TEST)));
+ static constexpr OUStringLiteral TEST = u"\u4E00b";
+ OUString sResult = aGenerator.CreateMnemonic(TEST);
CPPUNIT_ASSERT_EQUAL(u'~', sResult[1]);
}
{
- const sal_Unicode TEST[] = { 0x4E00 };
- OUString sResult = aGenerator.CreateMnemonic(OUString(TEST, SAL_N_ELEMENTS(TEST)));
+ static constexpr OUStringLiteral TEST = u"\u4E00";
+ OUString sResult = aGenerator.CreateMnemonic(TEST);
CPPUNIT_ASSERT_EQUAL(OUString("(~C)"), sResult.copy(sResult.getLength() - 4));
}
}