From: Luca C. <luc...@se...> - 2007-05-25 09:28:10
|
Hello, I am using wxWidgets 2.8.4 compiled with "#define wxUSE_STL 1", and = compiling wxThings I am getting some compilation errors regarding "... = ::Node is not defined... ". I propose here below a patch that would fix that error, and that will ma= ke = wxThings compileable whether wxUSE_STL is set to 1 or 0. Greetings, Luca RCS file: /cvsroot/wxcode/wxCode/components/wxthings/src/menubtn.cpp,v retrieving revision 1.2 diff -u -r1.2 menubtn.cpp --- src/menubtn.cpp 30 Mar 2007 14:20:36 -0000 1.2 +++ src/menubtn.cpp 25 May 2007 08:33:10 -0000 @@ -247,7 +247,8 @@ bool check_next =3D false; // find the next available radio item to check - for (wxMenuItemList::Node *node =3D items.GetFirst(); node; nod= e =3D = node->GetNext()) + for (wxMenuItemList::compatibility_iterator node =3D = items.GetFirst(); node; node =3D node->GetNext()) { wxMenuItem *mi =3D (wxMenuItem*)node->GetData(); if (mi && (mi->GetKind() =3D=3D wxITEM_RADIO)) @@ -287,7 +288,7 @@ const wxMenuItemList &items =3D m_menu->GetMenuItems(); - for (wxMenuItemList::Node *node =3D items.GetFirst(); node; node =3D= = node->GetNext()) + for (wxMenuItemList::compatibility_iterator node =3D items.GetFirst= (); = node; node =3D node->GetNext()) { wxMenuItem *mi =3D (wxMenuItem*)node->GetData(); if (mi && (mi->GetKind() =3D=3D wxITEM_RADIO)) |