Pointer assertion for contract clarity

This commit is contained in:
Dmitry-Me 2016-08-04 17:16:05 +03:00
parent 74d44acb17
commit db02b21bc5
1 changed files with 1 additions and 0 deletions

View File

@ -149,6 +149,7 @@ void StrPair::TransferTo( StrPair* other )
// This in effect implements the assignment operator by "moving"
// ownership (as in auto_ptr).
TIXMLASSERT( other != 0 );
TIXMLASSERT( other->_flags == 0 );
TIXMLASSERT( other->_start == 0 );
TIXMLASSERT( other->_end == 0 );