//---------------------------------------------------------------------------
wxMultiCellSizer::~wxMultiCellSizer()
{
- m_children.DeleteContents(TRUE);
+ WX_CLEAR_LIST(wxSizerItemList, m_children);
free(m_maxHeight);
free(m_maxWidth);
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();
if (m_children.GetCount() == 0)
return wxSize(10,10);
- int m_minWidth = 0;
- int m_minHeight = 0;
-
GetMinimums();
- m_minWidth = Sum(m_maxWidth, m_cell_count.GetWidth());
- m_minHeight = Sum(m_maxHeight, m_cell_count.GetHeight());
+ int m_minWidth = Sum(m_maxWidth, m_cell_count.GetWidth());
+ int m_minHeight = Sum(m_maxHeight, m_cell_count.GetHeight());
return wxSize( m_minWidth, m_minHeight );
}
//---------------------------------------------------------------------------
m_weights[x]->SetWidth(0);
}
- wxSizerItemList::Node *node = m_children.GetFirst();
+ wxSizerItemList::compatibility_iterator node = m_children.GetFirst();
while (node)
{
wxSizerItem *item = node->GetData();