mirror of
https://github.com/NoelFB/blah.git
synced 2025-02-18 12: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)
|
||||
{
|
||||
m_buffer = nullptr;
|
||||
m_count = m_capacity = 0;
|
||||
Reserve(m_capacity);
|
||||
m_count = m_capacity = capacity;
|
||||
reserve(m_capacity);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
Loading…
Reference in New Issue
Block a user