/////////////////////////////////////////////////////////////////////////////
-// 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)
#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"
// ---------------------------------------------------------------------------
: 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 )
{
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() )
{
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()));
}
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)) )
{
}
#endif // wxUSE_DYNAMIC_LOADER
-