Improved const correctness. There are no functional changes intended.

This commit is contained in:
orbitcowboy
2019-08-14 09:30:30 +02:00
parent ff61650517
commit 73f5409b62
2 changed files with 4 additions and 4 deletions

View File

@@ -2101,7 +2101,7 @@ XMLDocument::~XMLDocument()
}
void XMLDocument::MarkInUse(XMLNode* node)
void XMLDocument::MarkInUse(const XMLNode* const node)
{
TIXMLASSERT(node);
TIXMLASSERT(node->_parent == 0);

View File

@@ -562,7 +562,7 @@ public:
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 @@ public:
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 @@ public:
char* Identify( char* p, XMLNode** node );
// internal
void MarkInUse(XMLNode*);
void MarkInUse(const XMLNode* const);
virtual XMLNode* ShallowClone( XMLDocument* /*document*/ ) const {
return 0;