-// Set pointers to base class(es) to speed up IsKindOf
-void wxClassInfo::InitializeClasses(void)
-{
- wxHashTable table(wxKEY_STRING);
-
- // Index all class infos by their class name
- wxClassInfo *info = first;
- while (info)
- {
- if (info->className)
- table.Put(info->className, (wxObject *)info);
- info = info->next;
- }
-
- // Set base pointers for each wxClassInfo
- info = first;
- while (info)
- {
- if (info->GetBaseClassName1())
- info->baseInfo1 = (wxClassInfo *)table.Get(info->GetBaseClassName1());
- if (info->GetBaseClassName2())
- info->baseInfo2 = (wxClassInfo *)table.Get(info->GetBaseClassName2());
- info = info->next;
- }
+ // Set base pointers for each wxClassInfo
+
+ for(info = sm_first; info; info = info->m_next)
+ {
+ if (info->GetBaseClassName1())
+ info->m_baseInfo1 = (wxClassInfo *)sm_classTable->Get(info->GetBaseClassName1());
+ if (info->GetBaseClassName2())
+ info->m_baseInfo2 = (wxClassInfo *)sm_classTable->Get(info->GetBaseClassName2());
+ }