sw/source/writerfilter/rtftok/rtftokenizer.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 4fec22a9937d2a826e17fb053b4a99222c146756
Author:     Mike Kaganski <[email protected]>
AuthorDate: Fri Feb 13 11:15:49 2026 +0100
Commit:     Mike Kaganski <[email protected]>
CommitDate: Fri Feb 13 19:06:03 2026 +0100

    Use rtl::isAsciiHexDigit instead of manual check
    
    Change-Id: I3121e9161785e843e2509c1fb1134d7097ace924
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199329
    Reviewed-by: Mike Kaganski <[email protected]>
    Tested-by: Jenkins

diff --git a/sw/source/writerfilter/rtftok/rtftokenizer.cxx 
b/sw/source/writerfilter/rtftok/rtftokenizer.cxx
index 0f3829e7dd95..13ca17381147 100644
--- a/sw/source/writerfilter/rtftok/rtftokenizer.cxx
+++ b/sw/source/writerfilter/rtftok/rtftokenizer.cxx
@@ -2043,8 +2043,7 @@ RTFError RTFTokenizer::resolveParse()
                     {
                         SAL_INFO("writerfilter.rtf", __func__ << ": hex 
internal state");
                         // Assume that \'<number><junk> means \'0<number>.
-                        if (rtl::isAsciiDigit(static_cast<unsigned char>(ch))
-                            || (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 
'F'))
+                        if (rtl::isAsciiHexDigit(static_cast<unsigned 
char>(ch)))
                         {
                             b = b << 4;
                             sal_Int8 parsed = o3tl::convertToHex<sal_Int8>(ch);

Reply via email to