X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dee1a63ff52bfe4da396187f8438aa1a29796737..8bd37efca7eb0de7cdf72167e138f9cabd9b6750:/src/common/dynload.cpp diff --git a/src/common/dynload.cpp b/src/common/dynload.cpp index 5cb065859d..ffb80f1af6 100644 --- a/src/common/dynload.cpp +++ b/src/common/dynload.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: dynload.cpp +// Name: src/common/dynload.cpp // Purpose: Dynamic loading framework // Author: Ron Lee, David Falkinder, Vadim Zeitlin and a cast of 1000's // (derived in part from dynlib.cpp (c) 1998 Guilhem Lavaux) @@ -31,12 +31,12 @@ #include "wx/intl.h" #include "wx/hash.h" #include "wx/utils.h" + #include "wx/module.h" #endif #include "wx/strconv.h" #include "wx/dynload.h" -#include "wx/module.h" // --------------------------------------------------------------------------- @@ -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)) ) { @@ -360,4 +360,3 @@ void wxPluginManager::Unload() } #endif // wxUSE_DYNAMIC_LOADER -