X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ce3ed50dbe32d118321082db84c3a9abb047d5b7..f40f9976fd085fd6d2099de861159bb1062a8f46:/src/common/module.cpp diff --git a/src/common/module.cpp b/src/common/module.cpp index f1d0bebed7..d296b83d68 100644 --- a/src/common/module.cpp +++ b/src/common/module.cpp @@ -42,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() @@ -53,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))) ) {