From 9de541f4657ce569d9989d1538ee9895d3d2335f Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Wed, 24 Sep 2014 14:21:36 +0400 Subject: [PATCH] Reuse const version for non-const one --- tinyxml2.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) );