mirror of https://github.com/AxioDL/tinyxml2.git
Better parameter name
This commit is contained in:
parent
51b33321be
commit
040092215d
|
@ -211,13 +211,13 @@ private:
|
||||||
Has a small initial memory pool, so that low or no usage will not
|
Has a small initial memory pool, so that low or no usage will not
|
||||||
cause a call to new/delete
|
cause a call to new/delete
|
||||||
*/
|
*/
|
||||||
template <class T, int INIT>
|
template <class T, int INITIAL_SIZE>
|
||||||
class DynArray
|
class DynArray
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
DynArray() {
|
DynArray() {
|
||||||
_mem = _pool;
|
_mem = _pool;
|
||||||
_allocated = INIT;
|
_allocated = INITIAL_SIZE;
|
||||||
_size = 0;
|
_size = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -312,7 +312,7 @@ private:
|
||||||
}
|
}
|
||||||
|
|
||||||
T* _mem;
|
T* _mem;
|
||||||
T _pool[INIT];
|
T _pool[INITIAL_SIZE];
|
||||||
int _allocated; // objects allocated
|
int _allocated; // objects allocated
|
||||||
int _size; // number objects in use
|
int _size; // number objects in use
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue