#include "wx/hash.h"
#include "wx/listimpl.cpp"
-#ifdef __SALFORDC__
-void wxwxModuleListNode::DeleteData()
-{
- delete (_WX_LIST_ITEM_TYPE_wxModuleList *)GetData();
-}
-#else
WX_DEFINE_LIST(wxModuleList);
-#endif
IMPLEMENT_CLASS(wxModule, wxObject)
m_modules.Append(module);
}
+void wxModule::UnregisterModule(wxModule* module)
+{
+ m_modules.DeleteObject(module);
+}
+
// Collect up all module-derived classes, create an instance of each,
// and register them.
void wxModule::RegisterModules()
node = wxClassInfo::sm_classTable->Next();
while (node)
{
- classInfo = (wxClassInfo *)node->Data();
+ classInfo = (wxClassInfo *)node->GetData();
if ( classInfo->IsKindOf(CLASSINFO(wxModule)) &&
(classInfo != (& (wxModule::sm_classwxModule))) )
{