X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ba597ca8315df299a603990df4e0f334e3f21f6a..793db75554d2d2bc5dc9b0fc42c0b7aa03a44183:/contrib/src/gizmos/multicell.cpp diff --git a/contrib/src/gizmos/multicell.cpp b/contrib/src/gizmos/multicell.cpp index d50fd58826..d9bf7b1364 100644 --- a/contrib/src/gizmos/multicell.cpp +++ b/contrib/src/gizmos/multicell.cpp @@ -186,7 +186,7 @@ wxMultiCellSizer::wxMultiCellSizer( int rows, int cols) //--------------------------------------------------------------------------- wxMultiCellSizer::~wxMultiCellSizer() { - m_children.DeleteContents(TRUE); + WX_CLEAR_LIST(wxSizerItemList, m_children); free(m_maxHeight); free(m_maxWidth); @@ -296,8 +296,8 @@ void wxMultiCellSizer::RecalcSizes() wxPoint c_point; wxSize c_size; - wxSizerItemList::Node *current = m_children.GetFirst(); - while (current != NULL) + wxSizerItemList::compatibility_iterator current = m_children.GetFirst(); + while (current) { wxSizerItem *item = current->GetData(); @@ -400,7 +400,7 @@ void wxMultiCellSizer :: GetMinimums() m_weights[x]->SetWidth(0); } - wxSizerItemList::Node *node = m_children.GetFirst(); + wxSizerItemList::compatibility_iterator node = m_children.GetFirst(); while (node) { wxSizerItem *item = node->GetData();