mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 11:21:38 +00:00
Merge pull request #460 from Dmitry-Me/pointerAssertion
Pointer assertion for contract clarity
This commit is contained in:
commit
1043f6feed
@ -149,6 +149,7 @@ void StrPair::TransferTo( StrPair* other )
|
|||||||
// This in effect implements the assignment operator by "moving"
|
// This in effect implements the assignment operator by "moving"
|
||||||
// ownership (as in auto_ptr).
|
// ownership (as in auto_ptr).
|
||||||
|
|
||||||
|
TIXMLASSERT( other != 0 );
|
||||||
TIXMLASSERT( other->_flags == 0 );
|
TIXMLASSERT( other->_flags == 0 );
|
||||||
TIXMLASSERT( other->_start == 0 );
|
TIXMLASSERT( other->_start == 0 );
|
||||||
TIXMLASSERT( other->_end == 0 );
|
TIXMLASSERT( other->_end == 0 );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user