diff --git a/tinyxml2.h b/tinyxml2.h index 1fdc928..bf4d84f 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -523,10 +523,7 @@ public: return p; } static char* SkipWhiteSpace( char* p ) { - while( !IsUTF8Continuation(*p) && isspace( *reinterpret_cast(p) ) ) { - ++p; - } - return p; + return const_cast( SkipWhiteSpace( const_cast(p) ) ); } static bool IsWhiteSpace( char p ) { return !IsUTF8Continuation(p) && isspace( static_cast(p) );