]> git.saurik.com Git - wxWidgets.git/commitdiff
fixed 2 year old bug in wxBaseArray::operator=() (who the hell is/was RO who introduc...
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 29 Jun 2001 09:13:34 +0000 (09:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 29 Jun 2001 09:13:34 +0000 (09:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dynarray.cpp

index 5b4d11e9b9c5ef8a071123d16e53c5278eb4c77c..a557970f6c280c66b3e098285a428f7e7131b334 100644 (file)
@@ -73,14 +73,7 @@ wxBaseArray::wxBaseArray(const wxBaseArray& src)
 // 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;