// assignment operator
wxBaseArray& wxBaseArray::operator=(const wxBaseArray& src)
{
-#if 0
wxDELETEA(m_pItems);
-#else
- if ( (m_pItems)) {
- delete (m_pItems);
- (m_pItems) = 0;
- }
-#endif
m_nSize = // not src.m_nSize to save memory
m_nCount = src.m_nCount;
// pre-allocates memory (frees the previous data!)
void wxBaseArray::Alloc(size_t nSize)
{
- wxASSERT( nSize > 0 );
-
// only if old buffer was not big enough
if ( nSize > m_nSize ) {
wxDELETEA(m_pItems);