diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:26:34 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-22 21:26:34 +0100 |
commit | 9df97a7d65a68699f5ee90c2541bd7c8a2df95d9 (patch) | |
tree | d5ba23a9ad9c61049da719aad5fb4993b15ad532 /xmlsecurity | |
parent | 7a46166beb714a3357f7fb04111ba98f6325065f (diff) |
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: I0b478dfa25a54595ba0dcee1ca3ec0291ee94ef5
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/pdfio/pdfdocument.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmlsecurity/source/pdfio/pdfdocument.cxx b/xmlsecurity/source/pdfio/pdfdocument.cxx index 78d41c94e097..5420196df7d8 100644 --- a/xmlsecurity/source/pdfio/pdfdocument.cxx +++ b/xmlsecurity/source/pdfio/pdfdocument.cxx @@ -19,6 +19,7 @@ #include <comphelper/scopeguard.hxx> #include <comphelper/string.hxx> #include <filter/msfilter/mscodec.hxx> +#include <rtl/character.hxx> #include <rtl/strbuf.hxx> #include <rtl/string.hxx> #include <sal/log.hxx> @@ -131,7 +132,7 @@ bad_data: do { PRUint32 decimal = 0; - while (len > 0 && isdigit(*from)) + while (len > 0 && rtl::isAsciiDigit(static_cast<unsigned char>(*from))) { PRUint32 addend = (*from++ - '0'); --len; |