X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/02761f6cd478e3c2c97cf6f93442747f7b029833..0bbe61b8c18a1795189f0cf73cc61c14a0fb846d:/src/common/dynload.cpp?ds=sidebyside diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index 7759f6f8d1..ffb80f1af6 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -77,9 +77,9 @@ wxPluginLibrary::wxPluginLibrary(const wxString &libname, int flags) : m_linkcount(1) , m_objcount(0) { - m_before = wxClassInfo::sm_first; + m_before = wxClassInfo::GetFirst(); Load( libname, flags ); - m_after = wxClassInfo::sm_first; + m_after = wxClassInfo::GetFirst(); if( m_handle != 0 ) { @@ -131,7 +131,7 @@ bool wxPluginLibrary::UnrefLib() void wxPluginLibrary::UpdateClasses() { - for (wxClassInfo *info = m_after; info != m_before; info = info->m_next) + for (const wxClassInfo *info = m_after; info != m_before; info = info->GetNext()) { if( info->GetClassName() ) { @@ -148,7 +148,7 @@ void wxPluginLibrary::RestoreClasses() if (!ms_classes) return; - for(wxClassInfo *info = m_after; info != m_before; info = info->m_next) + for(const wxClassInfo *info = m_after; info != m_before; info = info->GetNext()) { ms_classes->erase(ms_classes->find(info->GetClassName())); } @@ -167,7 +167,7 @@ void wxPluginLibrary::RegisterModules() wxASSERT_MSG( m_linkcount == 1, _T("RegisterModules should only be called for the first load") ); - for ( wxClassInfo *info = m_after; info != m_before; info = info->m_next) + for ( const wxClassInfo *info = m_after; info != m_before; info = info->GetNext()) { if( info->IsKindOf(CLASSINFO(wxModule)) ) {