- 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;
- }
-}
+ for(wxClassInfo *info = sm_first; info ; info = info->m_next)
+ if( wxStrcmp(info->GetClassName(), className) == 0 )
+ return info;