mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 03:11:27 +00:00
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…
x
Reference in New Issue
Block a user