From 254c13265f334be8a52627379bc393ca13fe6298 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 23 Mar 2017 07:35:01 +0100 Subject: Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char) Change-Id: I94b4cd3860b1b8740965373ee0b254a0415c8b4c --- idl/source/objects/basobj.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'idl') diff --git a/idl/source/objects/basobj.cxx b/idl/source/objects/basobj.cxx index c3a6e0b431d3..4b49726a89ee 100644 --- a/idl/source/objects/basobj.cxx +++ b/idl/source/objects/basobj.cxx @@ -17,9 +17,9 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include -#include - +#include #include #include @@ -49,7 +49,8 @@ void SvMetaObject::Back2Delimiter( SvStream & rOutStm ) char c = 0; rOutStm.ReadChar( c ); - while( isspace( c ) && rOutStm.Tell() != 1 ) + while( rtl::isAsciiWhiteSpace( static_cast(c) ) + && rOutStm.Tell() != 1 ) { rOutStm.SeekRel( -2 ); rOutStm.ReadChar( c ); -- cgit