From 2f5a103992b85fef4e771b25c79e9abafdd7e229 Mon Sep 17 00:00:00 2001 From: Dmitry-Me Date: Thu, 18 Jun 2015 16:40:09 +0300 Subject: [PATCH] Consistency asserts --- tinyxml2.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tinyxml2.h b/tinyxml2.h index af14205..e7ff2dd 100755 --- a/tinyxml2.h +++ b/tinyxml2.h @@ -281,14 +281,17 @@ public: } int Capacity() const { + TIXMLASSERT( _allocated >= INITIAL_SIZE ); return _allocated; } const T* Mem() const { + TIXMLASSERT( _mem ); return _mem; } T* Mem() { + TIXMLASSERT( _mem ); return _mem; }