lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit a45f25bdfb6166d754ebb8c7224c2e6bdc2e8527 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Sun Mar 5 16:38:52 2023 +0100 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Sun Mar 5 17:31:12 2023 +0000 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 <sberg...@redhat.com> 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);