]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/memory.cpp
Makefile next attempt
[wxWidgets.git] / src / common / memory.cpp
index f219387d429228cacbcbe216a752354cbf5d6027..a3dbce75165a34f77a74b07efdebfbe4d4bac270 100644 (file)
@@ -785,9 +785,14 @@ bool wxDebugContext::PrintClasses(void)
   }
 
   int n = 0;
-  wxClassInfo *info = wxClassInfo::first;
-  while (info)
+  wxNode *node;
+  wxClassInfo *info;
+
+  wxClassInfo::classTable.BeginFind();
+  node = wxClassInfo::classTable.Next();
+  while (node)
   {
+    info = (wxClassInfo *)node->Data();
     if (info->GetClassName())
     {
       wxTrace("%s ", info->GetClassName());
@@ -801,7 +806,7 @@ bool wxDebugContext::PrintClasses(void)
       else
         wxTrace("\n");
     }
-    info = info->next;
+    node = node->Next();
     n ++;
   }
   wxTrace("\nThere are %d classes derived from wxObject.\n", n);