commit | db02b21bc5a4249f2ed4205d33b6540989663f5d | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Thu Aug 04 17:16:05 2016 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Thu Aug 04 17:16:05 2016 +0300 |
tree | 456c841514e023600e0cad1d1dc6f4b7c1e1735a | |
parent | 74d44acb176f8510abf28ee0a70961eb26631988 [diff] [blame] |
Pointer assertion for contract clarity
diff --git a/tinyxml2.cpp b/tinyxml2.cpp index 9d6be5c..1b46071 100755 --- a/tinyxml2.cpp +++ b/tinyxml2.cpp
@@ -149,6 +149,7 @@ // 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 );