wxVector() : m_size(0), m_capacity(0), m_values(NULL) {}
- wxVector(const wxVector& c)
+ wxVector(const wxVector& c) : m_size(0), m_capacity(0), m_values(NULL)
{
Copy(c);
}
Ops::Free(m_values);
m_values = NULL;
- m_size = m_capacity = 0;
+ m_size =
+ m_capacity = 0;
}
void reserve(size_type n)
wxVector& operator=(const wxVector& vb)
{
+ clear();
Copy(vb);
return *this;
}
void Copy(const wxVector& vb)
{
- clear();
reserve(vb.size());
for ( const_iterator i = vb.begin(); i != vb.end(); ++i )