From: Mattia Barbon Date: Sun, 20 Jul 2003 19:29:30 +0000 (+0000) Subject: wxUSE_STL=1 compilation fix. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ccd7d9e5eb8569b70b3b0293d4761a18a5fba3c3 wxUSE_STL=1 compilation fix. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22161 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/dragimag/dragimag.cpp b/samples/dragimag/dragimag.cpp index f1c9764ac6..030ff24350 100644 --- a/samples/dragimag/dragimag.cpp +++ b/samples/dragimag/dragimag.cpp @@ -270,7 +270,7 @@ void MyCanvas::OnMouseEvent(wxMouseEvent& event) void MyCanvas::DrawShapes(wxDC& dc) { - wxNode* node = m_displayList.GetFirst(); + wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData(); @@ -295,7 +295,7 @@ void MyCanvas::EraseShape(DragShape* shape, wxDC& dc) void MyCanvas::ClearShapes() { - wxNode* node = m_displayList.GetFirst(); + wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData(); @@ -307,7 +307,7 @@ void MyCanvas::ClearShapes() DragShape* MyCanvas::FindShape(const wxPoint& pt) const { - wxNode* node = m_displayList.GetFirst(); + wxList::compatibility_iterator node = m_displayList.GetFirst(); while (node) { DragShape* shape = (DragShape*) node->GetData();