[Libreoffice-commits] core.git: idl/source

Stephan Bergmann sbergman at redhat.com
Thu Mar 23 06:35:32 UTC 2017


 idl/source/objects/basobj.cxx |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

New commits:
commit 254c13265f334be8a52627379bc393ca13fe6298
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Thu Mar 23 07:35:01 2017 +0100

    Use rtl::isAscii* instead of ctype.h is* (and fix passing plain char)
    
    Change-Id: I94b4cd3860b1b8740965373ee0b254a0415c8b4c

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 );


More information about the Libreoffice-commits mailing list