summaryrefslogtreecommitdiff
path: root/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/qa/rtl/strings/test_oustring_stringliterals.cxx')
-rw-r--r--sal/qa/rtl/strings/test_oustring_stringliterals.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
index 5b1b8ea83e04..37bc50ecc619 100644
--- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
+++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx
@@ -317,17 +317,17 @@ void test::oustring::StringLiterals::checkOUStringLiteral()
void test::oustring::StringLiterals::checkOUStringLiteral1()
{
auto l1 = rtlunittest::OUStringLiteral1('A');
- CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), l1.c);
+ CPPUNIT_ASSERT_EQUAL(u'A', l1.c);
char const c2 = 'A';
auto l2 = rtlunittest::OUStringLiteral1(c2);
- CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), l2.c);
+ CPPUNIT_ASSERT_EQUAL(u'A', l2.c);
char c3 = 'A'; auto l3 = rtlunittest::OUStringLiteral1(c3);
- CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), l3.c);
+ CPPUNIT_ASSERT_EQUAL(u'A', l3.c);
- auto l4 = rtlunittest::OUStringLiteral1(sal_Unicode('A'));
- CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), l4.c);
+ auto l4 = rtlunittest::OUStringLiteral1(u'A');
+ CPPUNIT_ASSERT_EQUAL(u'A', l4.c);
sal_Unicode const c5 = 0x100;
auto l5 = rtlunittest::OUStringLiteral1(c5);
@@ -335,7 +335,7 @@ void test::oustring::StringLiterals::checkOUStringLiteral1()
rtl::OUString s1{rtlunittest::OUStringLiteral1('A')};
CPPUNIT_ASSERT_EQUAL(sal_Int32(1), s1.getLength());
- CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), s1[0]);
+ CPPUNIT_ASSERT_EQUAL(u'A', s1[0]);
CPPUNIT_ASSERT_EQUAL(
true, rtl::OUString("A") == rtlunittest::OUStringLiteral1('A'));
@@ -348,8 +348,8 @@ void test::oustring::StringLiterals::checkOUStringLiteral1()
rtl::OUString s2("A" + rtlunittest::OUStringLiteral1('b'));
CPPUNIT_ASSERT_EQUAL(sal_Int32(2), s2.getLength());
- CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), s2[0]);
- CPPUNIT_ASSERT_EQUAL(sal_Unicode('b'), s2[1]);
+ CPPUNIT_ASSERT_EQUAL(u'A', s2[0]);
+ CPPUNIT_ASSERT_EQUAL(u'b', s2[1]);
}
void test::oustring::StringLiterals::checkUtf16() {