mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #471 from Dmitry-Me/loopInvariantAssertions
Loop invariant pointer assertions
This commit is contained in:
commit
6f1ad6153e
|
@ -191,6 +191,7 @@ void StrPair::SetStr( const char* str, int flags )
|
|||
|
||||
char* StrPair::ParseText( char* p, const char* endTag, int strFlags )
|
||||
{
|
||||
TIXMLASSERT( p );
|
||||
TIXMLASSERT( endTag && *endTag );
|
||||
|
||||
char* start = p;
|
||||
|
@ -204,6 +205,7 @@ char* StrPair::ParseText( char* p, const char* endTag, int strFlags )
|
|||
return p + length;
|
||||
}
|
||||
++p;
|
||||
TIXMLASSERT( p );
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue