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
This commit is contained in:
Vadim Zeitlin
2007-10-22 11:27:13 +00:00
parent f69c03def9
commit bc2ac5da6a

View File

@@ -1841,7 +1841,7 @@ void wxDCBase::DrawLines(const wxList *list, wxCoord xoffset, wxCoord yoffset )
wxPoint *points = new wxPoint[n]; wxPoint *points = new wxPoint[n];
unsigned int i = 0; unsigned int i = 0;
wxNode *node; wxObjectList::compatibility_iterator node;
for ( node = list->GetFirst(); node; node = node->GetNext(), i++ ) for ( node = list->GetFirst(); node; node = node->GetNext(), i++ )
{ {
wxPoint *point = (wxPoint*) node->GetData(); wxPoint *point = (wxPoint*) node->GetData();
@@ -1887,7 +1887,7 @@ void wxDCBase::DrawPolygon(const wxList *list,
wxPoint *points = new wxPoint[n]; wxPoint *points = new wxPoint[n];
unsigned int i = 0; unsigned int i = 0;
wxNode *node; wxObjectList::compatibility_iterator node;
for ( node = list->GetFirst(); node; node = node->GetNext(), i++ ) for ( node = list->GetFirst(); node; node = node->GetNext(), i++ )
{ {
wxPoint *point = (wxPoint*) node->GetData(); wxPoint *point = (wxPoint*) node->GetData();
@@ -2101,7 +2101,7 @@ static void wx_spline_draw_point_array(wxDCBase *dc)
void wxDCBase::DrawSpline(const wxList *points) void wxDCBase::DrawSpline(const wxList *points)
{ {
wxPointList list; wxPointList list;
wxNode *node = points->GetFirst(); wxObjectList::compatibility_iterator node = points->GetFirst();
while (node) while (node)
{ {
list.Append( (wxPoint*) node->GetData() ); list.Append( (wxPoint*) node->GetData() );