From a2201cba9f22c8aff57fb59cb57aa4e09ec5e555 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 23 Mar 2017 07:15:42 +0100 Subject: Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char) Change-Id: Ic0e1c7f4e0899fd976a00b5ea8ba8b130657bac9 --- idl/source/prj/command.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'idl/source') 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 #include +#include #include #include @@ -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(aStr[n]) ) ) n++; nPos = n; - while( aStr[n] && !isspace( aStr[n] ) ) + while( aStr[n] + && !rtl::isAsciiWhiteSpace( + static_cast(aStr[n]) ) ) n++; if( n != nPos ) pList->push_back( OStringToOUString(aStr.copy(nPos, n - nPos), RTL_TEXTENCODING_ASCII_US) ); -- cgit v1.2.3