]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/object.h
change the selection appropriately (and refresh it as needed) after deleting a notebo...
[wxWidgets.git] / include / wx / object.h
index 7c161ab1135b867e9f64a6bb4e0801980ed16783..a882a36e6ed08f36b2e597fc55e294b045012751 100644 (file)
@@ -74,26 +74,7 @@ public:
         , m_next(sm_first)
         { sm_first = this; }
 
-    ~wxClassInfo()
-    {
-        if (sm_first == this)
-        {
-            sm_first = m_next;
-        }
-        else
-        {
-            wxClassInfo * info = sm_first;
-            while (info)
-            {
-                if (info->m_next == this)
-                {
-                    info->m_next = m_next;
-                    break;
-                }
-                info = info->m_next;
-            }
-        }
-    }
+    ~wxClassInfo();
 
     wxObject *CreateObject() { return m_objectConstructor ? (*m_objectConstructor)() : 0; }