mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #212 from Dmitry-Me/reuseConstForNonConst
Reuse const version for non-const one
This commit is contained in:
commit
869f1487e2
|
@ -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