summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-02-23 07:28:17 +0100
committerMike Kaganski <mike.kaganski@collabora.com>2022-02-23 08:07:36 +0100
commit2c08104e4211594d3d06b1e4e85038276b58918a (patch)
treee62f970239bb9f7702e0ec6c50c65f9264fe5b51 /sal
parent8dcda24026d6d803f064351b1a1df8f6b77c2fa0 (diff)
Use rtl::isAscii
Change-Id: Iab88c3281f3dd1ba1668b3372420c97087c14da5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130381 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/strtmpl.hxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/strtmpl.hxx b/sal/rtl/strtmpl.hxx
index 856fce560065..d0f8fbeb6d83 100644
--- a/sal/rtl/strtmpl.hxx
+++ b/sal/rtl/strtmpl.hxx
@@ -1210,7 +1210,7 @@ void newFromLiteral ( IMPL_RTL_STRINGDATA** ppThi
{
if constexpr (sizeof(STRCODE<IMPL_RTL_STRINGDATA>) == sizeof(sal_Unicode))
{
- assert(static_cast<unsigned char>(*pCharStr) < 0x80); // ASCII range
+ assert(rtl::isAscii(static_cast<unsigned char>(*pCharStr)));
}
SAL_WARN_IF( (static_cast<unsigned char>(*pCharStr)) == '\0', "rtl.string",
"rtl_uString_newFromLiteral - Found embedded \\0 character" );