summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-28 09:47:27 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-29 11:44:31 +0000
commit2c10714426cc813c36aa82e4870b7b51c5c03050 (patch)
treedecd4f4343fb19a1e058c034e32b03be17cd9547 /sal
parent0c8fa58a2d73702770687ed15b98822d09f96ac3 (diff)
Make OUStringLiteral1 a wrapper around UTF-16 instead of just ASCII
...not merely an ASCII character Change-Id: Id2b381b35fe3a15574728ed973d60263dfef7249 Reviewed-on: https://gerrit.libreoffice.org/28446 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/qa/rtl/strings/test_oustring_stringliterals.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
index aa496a4779f1..ec4bbe244862 100644
--- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
+++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
@@ -218,18 +218,20 @@ void test::oustring::StringLiterals::checkOUStringLiteral()
void test::oustring::StringLiterals::checkOUStringLiteral1()
{
auto l1 = rtlunittest::OUStringLiteral1<'A'>();
- CPPUNIT_ASSERT_EQUAL('A', l1.c);
+ CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), l1.c);
char const c2 = 'A';
auto l2 = rtlunittest::OUStringLiteral1<c2>();
- CPPUNIT_ASSERT_EQUAL('A', l2.c);
+ CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), l2.c);
// char c3 = 'A'; auto l3 = rtlunittest::OUStringLiteral1<c3>();
auto l4 = rtlunittest::OUStringLiteral1<sal_Unicode('A')>();
- CPPUNIT_ASSERT_EQUAL('A', l4.c);
+ CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), l4.c);
- // auto l5 = rtlunittest::OUStringLiteral1<sal_Unicode(0x100)>();
+ sal_Unicode const c5 = 0x100;
+ auto l5 = rtlunittest::OUStringLiteral1<c5>();
+ CPPUNIT_ASSERT_EQUAL(c5, l5.c);
rtl::OUString s1{rtlunittest::OUStringLiteral1<'A'>()};
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), s1.getLength());