mirror of https://github.com/AxioDL/tinyxml2.git
Reuse const version for non-const one
This commit is contained in:
parent
b0776aeead
commit
9de541f465
|
@ -523,10 +523,7 @@ public:
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
static char* SkipWhiteSpace( char* p ) {
|
static char* SkipWhiteSpace( char* p ) {
|
||||||
while( !IsUTF8Continuation(*p) && isspace( *reinterpret_cast<unsigned char*>(p) ) ) {
|
return const_cast<char*>( SkipWhiteSpace( const_cast<const char*>(p) ) );
|
||||||
++p;
|
|
||||||
}
|
|
||||||
return p;
|
|
||||||
}
|
}
|
||||||
static bool IsWhiteSpace( char p ) {
|
static bool IsWhiteSpace( char p ) {
|
||||||
return !IsUTF8Continuation(p) && isspace( static_cast<unsigned char>(p) );
|
return !IsUTF8Continuation(p) && isspace( static_cast<unsigned char>(p) );
|
||||||
|
|
Loading…
Reference in New Issue