From 019d969d73efcb4ad876b294c968761ee8ed9733 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 11 Oct 2023 12:32:42 +0200 Subject: The other OStringLiteral ctor should be non-explicit too It had been missed by 31cd6fd0f3c856a81a03d0229de1c4d10442844f "Make OStringLiteral ctor non-explicit", and now prevented u8"..."_ostr from compiling. Change-Id: Ifb214fba0957b0d26b11daae6190ffa9d21713f0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157823 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sal/qa/rtl/strings/test_ostring_stringliterals.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'sal') diff --git a/sal/qa/rtl/strings/test_ostring_stringliterals.cxx b/sal/qa/rtl/strings/test_ostring_stringliterals.cxx index 28755316ed8f..ef8b8f3d73c9 100644 --- a/sal/qa/rtl/strings/test_ostring_stringliterals.cxx +++ b/sal/qa/rtl/strings/test_ostring_stringliterals.cxx @@ -276,6 +276,7 @@ void test::ostring::StringLiterals::checkOstr() { CPPUNIT_ASSERT_EQUAL(sal_Int32(0), ""_ostr.getLength()); CPPUNIT_ASSERT_EQUAL(sal_Int32(6), "foobar"_ostr.getLength()); CPPUNIT_ASSERT_EQUAL(sal_Int32(7), "foo\0bar"_ostr.getLength()); + CPPUNIT_ASSERT_EQUAL(sal_Int32(4), u8"\U00010000"_ostr.getLength()); CPPUNIT_ASSERT_EQUAL(""_ostr, rtl::OString(""_tstr)); CPPUNIT_ASSERT_EQUAL("foobar"_ostr, rtl::OString("foobar"_tstr)); CPPUNIT_ASSERT_EQUAL("foo\0bar"_ostr, rtl::OString("foo\0bar"_tstr)); -- cgit v1.2.3