X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8aa4edd248534c4c1879c93d363d1b7fb8e8c5c6..2e09dc2dc80d5dd5c42a559c4dd4738ed006a276:/src/common/module.cpp?ds=sidebyside diff --git a/src/common/module.cpp b/src/common/module.cpp index 5a65c70b94..0853642073 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()