From a45f25bdfb6166d754ebb8c7224c2e6bdc2e8527 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sun, 5 Mar 2023 16:38:52 +0100 Subject: Fix rtl::createUriCharClass argument (C++20) Change-Id: Ifb4d8a430adc19d51d07af3ca2aff66a7983224a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148283 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lingucomponent') diff --git a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx index ddb2e834215c..06e9f4eddff1 100644 --- a/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx +++ b/lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx @@ -90,8 +90,8 @@ OString encodeTextForLanguageTool(const OUString& text) // different cases are handled differently by the demo; some percent-encode the UTF-8 // representation, like %D0%90 (for cyrillic А); some turn into entities like ! (for // exclamation mark !); some other to things like \u0027 (for apostrophe '). - static constexpr auto myCharClass - = rtl::createUriCharClass("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"); + static constexpr auto myCharClass = rtl::createUriCharClass( + u8"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"); return OUStringToOString( rtl::Uri::encode(text, myCharClass.data(), rtl_UriEncodeStrict, RTL_TEXTENCODING_UTF8), RTL_TEXTENCODING_ASCII_US); -- cgit