X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8aa4edd248534c4c1879c93d363d1b7fb8e8c5c6..0d1cb8cb298ae68754575cb65695ff9567a36899:/src/common/module.cpp diff --git a/src/common/module.cpp b/src/common/module.cpp index 5a65c70b94..8397312756 100644 --- a/src/common/module.cpp +++ b/src/common/module.cpp @@ -35,6 +35,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 +51,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))) ) {