]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/list.cpp
wxX11 might compile now.
[wxWidgets.git] / src / common / list.cpp
index 018d554addc56270f8ced71bb4366f1c4e401dde..e94aa517a827b61ba52324dec3c76594d229af5f 100644 (file)
@@ -532,10 +532,18 @@ void wxListBase::Sort(const wxSortCompareFunction compfunc)
     delete[] objArray;
 }
 
     delete[] objArray;
 }
 
+// ============================================================================
+// compatibility section from now on
+// ============================================================================
+
+#ifdef wxLIST_COMPATIBILITY
+
 // -----------------------------------------------------------------------------
 // wxList (a.k.a. wxObjectList)
 // -----------------------------------------------------------------------------
 
 // -----------------------------------------------------------------------------
 // wxList (a.k.a. wxObjectList)
 // -----------------------------------------------------------------------------
 
+IMPLEMENT_DYNAMIC_CLASS(wxList, wxObject)
+
 void wxObjectListNode::DeleteData()
 {
     delete (wxObject *)GetData();
 void wxObjectListNode::DeleteData()
 {
     delete (wxObject *)GetData();
@@ -545,6 +553,8 @@ void wxObjectListNode::DeleteData()
 // wxStringList
 // -----------------------------------------------------------------------------
 
 // wxStringList
 // -----------------------------------------------------------------------------
 
+IMPLEMENT_DYNAMIC_CLASS(wxStringList, wxObject)
+
 // instead of WX_DEFINE_LIST(wxStringListBase) we define this function
 // ourselves
 void wxStringListNode::DeleteData()
 // instead of WX_DEFINE_LIST(wxStringListBase) we define this function
 // ourselves
 void wxStringListNode::DeleteData()
@@ -670,3 +680,6 @@ void wxStringList::Sort()
 
     delete [] array;
 }
 
     delete [] array;
 }
+
+#endif // wxLIST_COMPATIBILITY
+