diff options
Diffstat (limited to 'src/lib/util/coretmpl.h')
-rw-r--r-- | src/lib/util/coretmpl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util/coretmpl.h b/src/lib/util/coretmpl.h index 59e012fe753..7daee5eadff 100644 --- a/src/lib/util/coretmpl.h +++ b/src/lib/util/coretmpl.h @@ -59,7 +59,7 @@ private: public: // construction/destruction - dynamic_array(int initial = 0) + dynamic_array(int initial = 0) : m_array(NULL), m_count(0), m_allocated(0) { if (initial != 0) expand_internal(initial); m_count = initial; } @@ -73,7 +73,7 @@ public: // simple getters int count() const { return m_count; } - + // helpers void append(const _ElementType &element) { if (m_count == m_allocated) expand_internal((m_allocated == 0) ? 16 : (m_allocated << 1), true); m_array[m_count++] = element; } void reset() { delete[] m_array; m_array = NULL; m_count = m_allocated = 0; } |