fixed 2 year old bug in wxBaseArray::operator=() (who the hell is/was RO who introduced it?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user