diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-09 13:32:12 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-04-09 19:27:44 +0200 |
commit | d7910847fba1694c83dc57a1f27b8eaabb2a7d85 (patch) | |
tree | e673f1ee50082681f8f8fd4b7a5da3557446518f /xmlhelp/source/cxxhelp | |
parent | bcf9c4dc32eccd33234511ccf3c2281bee3b0e60 (diff) |
use more OStringToOUString
both because it is more obvious to read, and it takes a string_view,
which is handy
Change-Id: Ic201cfa0434446f51436d23c33d3f1a919ed65be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150167
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlhelp/source/cxxhelp')
-rw-r--r-- | xmlhelp/source/cxxhelp/provider/urlparameter.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx index 0a555607129c..850cb8591900 100644 --- a/xmlhelp/source/cxxhelp/provider/urlparameter.hxx +++ b/xmlhelp/source/cxxhelp/provider/urlparameter.hxx @@ -91,7 +91,7 @@ namespace chelp { //running into a later problem with strings >= 255 const char* pTitle = m_ptr + 3 + m_ptr[0] + static_cast<sal_Int32>(m_ptr[ 1+ static_cast<sal_Int32>(m_ptr[0]) ]); - return OUString(pTitle, rtl_str_getLength(pTitle), RTL_TEXTENCODING_UTF8); + return OStringToOUString(pTitle, strlen(pTitle), RTL_TEXTENCODING_UTF8); } |