diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-03-23 07:35:01 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-03-23 07:35:01 +0100 |
commit | 254c13265f334be8a52627379bc393ca13fe6298 (patch) | |
tree | 3718009df5c7ebf794e4a8216910bb93d91dca29 /idl | |
parent | 0ab2f39e45b4fba5a196555d5366f90c06a34771 (diff) |
Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
Change-Id: I94b4cd3860b1b8740965373ee0b254a0415c8b4c
Diffstat (limited to 'idl')
-rw-r--r-- | idl/source/objects/basobj.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 <sal/config.h> -#include <ctype.h> - +#include <rtl/character.hxx> #include <tools/debug.hxx> #include <basobj.hxx> @@ -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<unsigned char>(c) ) + && rOutStm.Tell() != 1 ) { rOutStm.SeekRel( -2 ); rOutStm.ReadChar( c ); |