diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-08-27 15:08:26 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-08-29 11:43:55 +0000 |
commit | c399004b42ae3694e13730712854556b6293763e (patch) | |
tree | 7ea30d4b3fb70d4eeb674a2c60200e169be6f971 /sal/qa | |
parent | f37fd4e2b47c7ffe81cd76db72b012a1210c1d1b (diff) |
OUString construction from OUStringLiteral1 must not be overruled by...
...Except[Const]CharArrayDetector, under RTL_STRING_UNITTEST
Change-Id: Ib185fb8406c4afcff1c854a2b74dae02a0ee2b3f
Reviewed-on: https://gerrit.libreoffice.org/28444
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sal/qa')
-rw-r--r-- | sal/qa/rtl/strings/test_oustring_stringliterals.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx index 961c2de72997..df9aecd4fb21 100644 --- a/sal/qa/rtl/strings/test_oustring_stringliterals.cxx +++ b/sal/qa/rtl/strings/test_oustring_stringliterals.cxx @@ -228,8 +228,7 @@ void test::oustring::StringLiterals::checkOUStringLiteral1() // auto l5 = rtlunittest::OUStringLiteral1<sal_Unicode(0x100)>(); - rtl::OUString s1; - s1 = rtlunittest::OUStringLiteral1<'A'>(); + rtl::OUString s1{rtlunittest::OUStringLiteral1<'A'>()}; CPPUNIT_ASSERT_EQUAL(sal_Int32(1), s1.getLength()); CPPUNIT_ASSERT_EQUAL(sal_Unicode('A'), s1[0]); |