- // Index all class infos by their class name
- wxClassInfo *info = first;
- while (info)
- {
- if (info->className)
- classTable.Put(info->className, (wxObject *)info);
- info = info->next;
- }
-
- // Set base pointers for each wxClassInfo
- info = first;
- while (info)
- {
- if (info->GetBaseClassName1())
- info->baseInfo1 = (wxClassInfo *)classTable.Get(info->GetBaseClassName1());
- if (info->GetBaseClassName2())
- info->baseInfo2 = (wxClassInfo *)classTable.Get(info->GetBaseClassName2());
- info = info->next;
- }
- first = NULL;
+ wxClassInfo::sm_classTable = new wxHashTable(wxKEY_STRING);
+
+ // Index all class infos by their class name
+ wxClassInfo *info = sm_first;
+ while (info)
+ {
+ if (info->m_className)
+ sm_classTable->Put(info->m_className, (wxObject *)info);
+ info = info->m_next;
+ }
+
+ // Set base pointers for each wxClassInfo
+ info = sm_first;
+ while (info)
+ {
+ if (info->GetBaseClassName1())
+ info->m_baseInfo1 = (wxClassInfo *)sm_classTable->Get(info->GetBaseClassName1());
+ if (info->GetBaseClassName2())
+ info->m_baseInfo2 = (wxClassInfo *)sm_classTable->Get(info->GetBaseClassName2());
+ info = info->m_next;
+ }