[Libreoffice-commits] core.git: vcl/qa
Chris Sherlock
chris.sherlock79 at gmail.com
Sat Jul 22 05:22:03 UTC 2017
vcl/qa/cppunit/mnemonic.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 827aa375ddc89cbc468267cbf94a8cea1ef4215c
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date: Sat Jul 22 12:56:31 2017 +1000
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 at gmail.com>
Tested-by: Chris Sherlock <chris.sherlock79 at gmail.com>
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);
More information about the Libreoffice-commits
mailing list