diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-23 07:15:42 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-23 07:20:44 +0100 |
commit | a2201cba9f22c8aff57fb59cb57aa4e09ec5e555 (patch) | |
tree | e2459efba59becc082d1bd1d843bfe43058b3636 /idl | |
parent | 9f5b1c4f2afb5844007f1bd24761acd72908cb4f (diff) |
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: Ic0e1c7f4e0899fd976a00b5ea8ba8b130657bac9
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/prj/command.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/idl/source/prj/command.cxx b/idl/source/prj/command.cxx index f8cf4088b1de..2b5132682724 100644 --- a/idl/source/prj/command.cxx +++ b/idl/source/prj/command.cxx @@ -25,6 +25,7 @@ #include <ctype.h> #include <osl/diagnose.h> +#include <rtl/character.hxx> #include <command.hxx> #include <globals.hxx> @@ -153,10 +154,14 @@ static bool ResponseFile( StringList * pList, int argc, char ** argv ) sal_uInt16 nPos = 1; while( n != nPos ) { - while( aStr[n] && isspace( aStr[n] ) ) + while( aStr[n] + && rtl::isAsciiWhiteSpace( + static_cast<unsigned char>(aStr[n]) ) ) n++; nPos = n; - while( aStr[n] && !isspace( aStr[n] ) ) + while( aStr[n] + && !rtl::isAsciiWhiteSpace( + static_cast<unsigned char>(aStr[n]) ) ) n++; if( n != nPos ) pList->push_back( OStringToOUString(aStr.copy(nPos, n - nPos), RTL_TEXTENCODING_ASCII_US) ); |