From: Vadim Zeitlin Date: Mon, 22 Oct 2007 11:27:13 +0000 (+0000) Subject: compilation fix for wxUSE_STL==1 after wxList methods changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bc2ac5da6af098491f17b4ea1e7796c127f393e9 compilation fix for wxUSE_STL==1 after wxList methods changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/dcbase.cpp b/src/common/dcbase.cpp index a6e495af41..6a2bc1ff6c 100644 --- a/src/common/dcbase.cpp +++ b/src/common/dcbase.cpp @@ -1841,7 +1841,7 @@ void wxDCBase::DrawLines(const wxList *list, wxCoord xoffset, wxCoord yoffset ) wxPoint *points = new wxPoint[n]; unsigned int i = 0; - wxNode *node; + wxObjectList::compatibility_iterator node; for ( node = list->GetFirst(); node; node = node->GetNext(), i++ ) { wxPoint *point = (wxPoint*) node->GetData(); @@ -1887,7 +1887,7 @@ void wxDCBase::DrawPolygon(const wxList *list, wxPoint *points = new wxPoint[n]; unsigned int i = 0; - wxNode *node; + wxObjectList::compatibility_iterator node; for ( node = list->GetFirst(); node; node = node->GetNext(), i++ ) { wxPoint *point = (wxPoint*) node->GetData(); @@ -2101,7 +2101,7 @@ static void wx_spline_draw_point_array(wxDCBase *dc) void wxDCBase::DrawSpline(const wxList *points) { wxPointList list; - wxNode *node = points->GetFirst(); + wxObjectList::compatibility_iterator node = points->GetFirst(); while (node) { list.Append( (wxPoint*) node->GetData() );