idlc/source/scanner.l |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit cb2a1cb37035a634a3e30bd81480ca311bf11eba
Author: Stephan Bergmann <sberg...@redhat.com>
Date:   Wed Mar 22 21:59:42 2017 +0100

    Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
    
    Change-Id: I9d3cf6363e1caf66a9d4cc3a1560c93e17038c2d

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;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to