summaryrefslogtreecommitdiff
path: root/lingucomponent
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-03-05 16:38:52 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-03-05 17:31:12 +0000
commita45f25bdfb6166d754ebb8c7224c2e6bdc2e8527 (patch)
tree1ab557757e4033e4cd650ecfb74c5f9ae5a12c83 /lingucomponent
parente7780530b92ed898f32fb8bca9a0c150096592d6 (diff)
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 <sbergman@redhat.com>
Diffstat (limited to 'lingucomponent')
-rw-r--r--lingucomponent/source/spellcheck/languagetool/languagetoolimp.cxx4
1 files changed, 2 insertions, 2 deletions
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 &#33; (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);