commit | 2f5a103992b85fef4e771b25c79e9abafdd7e229 | [log] [tgz] |
---|---|---|
author | Dmitry-Me <wipedout@yandex.ru> | Thu Jun 18 16:40:09 2015 +0300 |
committer | Dmitry-Me <wipedout@yandex.ru> | Thu Jun 18 16:40:09 2015 +0300 |
tree | 5fab977f5f5d522ec6171f027dc366ecf4666478 | |
parent | 2b2649e1e4f6b776efc06b1e1bc2a8a79b9ea3d4 [diff] [blame] |
Consistency asserts
diff --git a/tinyxml2.h b/tinyxml2.h index af14205..e7ff2dd 100755 --- a/tinyxml2.h +++ b/tinyxml2.h
@@ -281,14 +281,17 @@ } int Capacity() const { + TIXMLASSERT( _allocated >= INITIAL_SIZE ); return _allocated; } const T* Mem() const { + TIXMLASSERT( _mem ); return _mem; } T* Mem() { + TIXMLASSERT( _mem ); return _mem; }