+void wxPluginLibrary::UpdateClasses()
+{
+ for (wxClassInfo *info = m_after; info != m_before; info = info->m_next)
+ {
+ if( info->GetClassName() )
+ {
+ // Hash all the class names into a local table too so
+ // we can quickly find the entry they correspond to.
+ (*ms_classes)[info->GetClassName()] = this;
+ }
+ }
+}
+
+void wxPluginLibrary::RestoreClasses()
+{
+ // Check if there is a need to restore classes.
+ if (!ms_classes)
+ return;
+
+ for(wxClassInfo *info = m_after; info != m_before; info = info->m_next)
+ {
+ ms_classes->erase(ms_classes->find(info->GetClassName()));
+ }
+}
+