#endif
#include "wx/module.h"
+#include "wx/hash.h"
IMPLEMENT_CLASS(wxModule, wxObject)
// and register them.
bool wxModule::RegisterModules(void)
{
- wxClassInfo* classInfo = wxClassInfo::first;
- while (classInfo)
+ wxNode *node;
+ wxClassInfo* classInfo;
+
+ wxClassInfo::sm_classTable->BeginFind();
+ node = wxClassInfo::sm_classTable->Next();
+ while (node)
{
- if ((classInfo != (& (wxModule::classwxModule))) &&
+ classInfo = (wxClassInfo *)node->Data();
+ if ((classInfo != (& (wxModule::sm_classwxModule))) &&
classInfo->IsKindOf(CLASSINFO(wxModule)))
{
wxModule* module = (wxModule*) classInfo->CreateObject();
RegisterModule(module);
}
- classInfo = classInfo->next;
+ node = wxClassInfo::sm_classTable->Next();
}
return TRUE;
}