mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-20 13:48:27 +08:00
Fixed lost capacity and incorrect method name
This commit is contained in:
parent
05bce9cff6
commit
e5579e7570
@ -99,8 +99,8 @@ namespace Blah
|
|||||||
List<T>::List(int capacity)
|
List<T>::List(int capacity)
|
||||||
{
|
{
|
||||||
m_buffer = nullptr;
|
m_buffer = nullptr;
|
||||||
m_count = m_capacity = 0;
|
m_count = m_capacity = capacity;
|
||||||
Reserve(m_capacity);
|
reserve(m_capacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
|
Loading…
Reference in New Issue
Block a user