summaryrefslogtreecommitdiffstats
path: root/rsc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-22 21:53:07 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-22 21:53:07 +0100
commit971be75c58889b03bf69b31d3721081c39d53a35 (patch)
treeae23e2eed76babee7797f9282d0cf58e42c545b1 /rsc
parentUse rtl::isAscii* instead of ctype.h is* with sal_Unicode arg (diff)
downloadcore-971be75c58889b03bf69b31d3721081c39d53a35.tar.gz
core-971be75c58889b03bf69b31d3721081c39d53a35.zip
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
(was inadvertently missing from previous commit) Change-Id: Ia047ff8c21a50c5afe6fb2e6ff885be725b55bd3
Diffstat (limited to 'rsc')
-rw-r--r--rsc/source/parser/rsclex.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/rsc/source/parser/rsclex.cxx b/rsc/source/parser/rsclex.cxx
index cbe2f0eded4d..e03aa09444d5 100644
--- a/rsc/source/parser/rsclex.cxx
+++ b/rsc/source/parser/rsclex.cxx
@@ -223,7 +223,8 @@ int MakeToken( YYSTYPE * pTokenVal )
Atom nHashId;
OStringBuffer aBuf( 256 );
- while( isalnum (c) || (c == '_') || (c == '-') || (c == ':'))
+ while( rtl::isAsciiAlphanumeric (static_cast<unsigned char>(c))
+ || (c == '_') || (c == '-') || (c == ':'))
{
aBuf.append( sal_Char(c) );
c = pFI->GetFastChar();