X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8aa4edd248534c4c1879c93d363d1b7fb8e8c5c6..1a55595e69e5c5a3847fef936d7d7caa3df800de:/src/common/module.cpp diff --git a/src/common/module.cpp b/src/common/module.cpp index 5a65c70b94..d296b83d68 100644 --- a/src/common/module.cpp +++ b/src/common/module.cpp @@ -24,7 +24,14 @@ #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) @@ -35,6 +42,11 @@ void wxModule::RegisterModule(wxModule* module) 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() @@ -46,7 +58,7 @@ 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))) ) {