Improved const correctness. There are no functional changes intended.
diff --git a/tinyxml2.h b/tinyxml2.h
index a432f7e..dddf407 100755
--- a/tinyxml2.h
+++ b/tinyxml2.h
@@ -562,7 +562,7 @@
TIXMLASSERT( p );
return p;
}
- static char* SkipWhiteSpace( char* p, int* curLineNumPtr ) {
+ static char* SkipWhiteSpace( char* const p, int* curLineNumPtr ) {
return const_cast<char*>( SkipWhiteSpace( const_cast<const char*>(p), curLineNumPtr ) );
}
@@ -600,7 +600,7 @@
return strncmp( p, q, nChar ) == 0;
}
- inline static bool IsUTF8Continuation( char p ) {
+ inline static bool IsUTF8Continuation( const char p ) {
return ( p & 0x80 ) != 0;
}
@@ -1894,7 +1894,7 @@
char* Identify( char* p, XMLNode** node );
// internal
- void MarkInUse(XMLNode*);
+ void MarkInUse(const XMLNode* const);
virtual XMLNode* ShallowClone( XMLDocument* /*document*/ ) const {
return 0;