From c89a4996b82881988eb9cc1eeaf24e0d8f9e6dce Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 17 Nov 2018 15:46:38 +0100 Subject: Adapt to C++2a char_t u8 literals incompatibly change their type (as implemented by recent Clang trunk) Change-Id: Ia4f7b91f5d86656a056303d2754981ab2093a739 Reviewed-on: https://gerrit.libreoffice.org/63494 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sal/qa/rtl/textenc/rtl_textcvt.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sal/qa') diff --git a/sal/qa/rtl/textenc/rtl_textcvt.cxx b/sal/qa/rtl/textenc/rtl_textcvt.cxx index 2fed8e82ecb1..339075decba3 100644 --- a/sal/qa/rtl/textenc/rtl_textcvt.cxx +++ b/sal/qa/rtl/textenc/rtl_textcvt.cxx @@ -2918,11 +2918,12 @@ void Test::testInvalidUtf8() { auto const converter = rtl_createTextToUnicodeConverter( RTL_TEXTENCODING_JAVA_UTF8); CPPUNIT_ASSERT(converter != nullptr); + OStringLiteral const input(u8"\U00010000"); sal_Unicode buf[TEST_STRING_SIZE]; sal_uInt32 info; sal_Size converted; auto const size = rtl_convertTextToUnicode( - converter, nullptr, RTL_CONSTASCII_STRINGPARAM(u8"\U00010000"), buf, + converter, nullptr, input.data, input.size, buf, TEST_STRING_SIZE, (RTL_TEXTTOUNICODE_FLAGS_UNDEFINED_ERROR | RTL_TEXTTOUNICODE_FLAGS_MBUNDEFINED_ERROR -- cgit