mirror of https://github.com/AxioDL/tinyxml2.git
Merge pull request #352 from Dmitry-Me/consistencyAsserts
Consistency asserts
This commit is contained in:
commit
73f08a3185
|
@ -253,14 +253,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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue