mirror of https://github.com/AxioDL/tinyxml2.git
Consistency asserts
This commit is contained in:
parent
2b2649e1e4
commit
2f5a103992
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue