bool wxListBase::DeleteNode(wxNodeBase *node) { if ( !DetachNode(node) ) return false; DoDeleteNode(node); return true; }
wxListBase::~wxListBase() { wxNodeBase *each = m_nodeFirst; while ( each != NULL ) { wxNodeBase *next = each->GetNext(); DoDeleteNode(each); each = next; } }
void wxListBase::Clear() { wxNodeBase *current = m_nodeFirst; while ( current ) { wxNodeBase *next = current->GetNext(); DoDeleteNode(current); current = next; } m_nodeFirst = m_nodeLast = NULL; m_count = 0; }