wxUSE_STL fixes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -224,8 +224,8 @@ void MyFrame::OnClose(wxCloseEvent& event)
|
||||
return ;
|
||||
}
|
||||
// now try the children
|
||||
wxNode * pNode = m_children.GetFirst ();
|
||||
wxNode * pNext ;
|
||||
wxObjectList::compatibility_iterator pNode = m_children.GetFirst ();
|
||||
wxObjectList::compatibility_iterator pNext ;
|
||||
MyChild * pChild ;
|
||||
while ( pNode )
|
||||
{
|
||||
@@ -233,7 +233,7 @@ void MyFrame::OnClose(wxCloseEvent& event)
|
||||
pChild = (MyChild*) pNode -> GetData ();
|
||||
if (pChild -> Close ())
|
||||
{
|
||||
delete pNode ;
|
||||
m_children.Erase(pNode) ;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Reference in New Issue
Block a user