summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-22 21:59:42 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-22 21:59:42 +0100
commitcb2a1cb37035a634a3e30bd81480ca311bf11eba (patch)
treeec154cf9cc12b1f83e9c797bb5b75c504f137bee /idlc
parent97a6bf07012f5a55d16f28c3bb3d039a09f8d700 (diff)
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: I9d3cf6363e1caf66a9d4cc3a1560c93e17038c2d
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/scanner.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/idlc/source/scanner.l b/idlc/source/scanner.l
index f1484bc0bab9..d455c14cbaf5 100644
--- a/idlc/source/scanner.l
+++ b/idlc/source/scanner.l
@@ -29,6 +29,8 @@
#include <stdlib.h>
#include <string.h>
+#include <rtl/character.hxx>
+
#include <idlc.hxx>
#include <errorhandler.hxx>
#include <fehelper.hxx>
@@ -212,7 +214,7 @@ static void parseLineAndFile(sal_Char* pBuf)
return;
/* Find line number */
- for (r++; *r == ' ' || *r == '\t' || isalpha(*r); r++) ;
+ for (r++; *r == ' ' || *r == '\t' || rtl::isAsciiAlpha(static_cast<unsigned char>(*r)); r++) ;
h = r;
for (; *r != '\0' && *r != ' ' && *r != '\t'; r++) ;
*r++ = 0;