]> git.saurik.com Git - wxWidgets.git/commitdiff
compilation fix for wxUSE_STL==1 after wxList methods changes
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Oct 2007 11:27:13 +0000 (11:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Oct 2007 11:27:13 +0000 (11:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/dcbase.cpp

index a6e495af411513c3ce188dc9e3e7c97cec29a1a3..6a2bc1ff6c345bfd828f99ccb9d09d1aad55f006 100644 (file)
@@ -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() );