diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-22 12:56:31 +1000 |
---|---|---|
committer | Chris Sherlock <chris.sherlock79@gmail.com> | 2017-07-22 07:21:26 +0200 |
commit | 827aa375ddc89cbc468267cbf94a8cea1ef4215c (patch) | |
tree | 9c40b45766ad01d283cb754ed45e3c52dc5a7597 /vcl | |
parent | 8e71acc7b775aa4ad93b45aa18d0ec7d6a47a314 (diff) |
vcl: fix Unicode cast in mnemonic test
Fix the following:
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/vcl/qa/cppunit/mnemonic.cxx:35:50:error: in LIBO_INTERNAL_ONLY code, replace literal cast to 'sal_Unicode' (aka 'char16_t') with a u'...' char16_t character literal [loplugin:salunicodeliteral]
CPPUNIT_ASSERT_EQUAL(sResult[1], sal_Unicode('~'));
~~~~~~~~~~~~^~~~
/home/tdf/lode/jenkins/workspace/lo_gerrit/Config/linux_clang_dbgutil_64/workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:300:32: note: expanded from macro 'CPPUNIT_ASSERT_EQUAL'
(actual), \
^~~~~~
1 error generated.
Change-Id: I323270d4ddf9e8ae22f9bf7cd7333a8d7e58d17c
Reviewed-on: https://gerrit.libreoffice.org/40301
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/qa/cppunit/mnemonic.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/mnemonic.cxx b/vcl/qa/cppunit/mnemonic.cxx index 1e5ec74c1ec8..c3a28730934e 100644 --- a/vcl/qa/cppunit/mnemonic.cxx +++ b/vcl/qa/cppunit/mnemonic.cxx @@ -32,7 +32,7 @@ void VclMnemonicTest::testMnemonic() { MnemonicGenerator aGenerator; OUString sResult = aGenerator.CreateMnemonic(OUString::fromUtf8(u8"ßa")); - CPPUNIT_ASSERT_EQUAL(sResult[1], sal_Unicode('~')); + CPPUNIT_ASSERT_EQUAL(sResult[1], u'~'); } CPPUNIT_TEST_SUITE_REGISTRATION(VclMnemonicTest); |