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 make
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 = false;
// find the next available radio item to check
- for (wxMenuItemList::Node *node = items.GetFirst(); node; node =
node->GetNext())
+ for (wxMenuItemList::compatibility_iterator node =
items.GetFirst(); node; node = node->GetNext())
{
wxMenuItem *mi = (wxMenuItem*)node->GetData();
if (mi && (mi->GetKind() == wxITEM_RADIO))
@@ -287,7 +288,7 @@
const wxMenuItemList &items = m_menu->GetMenuItems();
- for (wxMenuItemList::Node *node = items.GetFirst(); node; node =
node->GetNext())
+ for (wxMenuItemList::compatibility_iterator node = items.GetFirst();
node; node = node->GetNext())
{
wxMenuItem *mi = (wxMenuItem*)node->GetData();
if (mi && (mi->GetKind() == wxITEM_RADIO))
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
wxCode-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wxcode-users