added wxRTTI macros to wxList and wxStringList

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14023 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-02-06 01:38:08 +00:00
parent 0cf5b09998
commit f98bd52a3e
2 changed files with 19 additions and 0 deletions

View File

@@ -532,10 +532,18 @@ void wxListBase::Sort(const wxSortCompareFunction compfunc)
delete[] objArray;
}
// ============================================================================
// compatibility section from now on
// ============================================================================
#ifdef wxLIST_COMPATIBILITY
// -----------------------------------------------------------------------------
// wxList (a.k.a. wxObjectList)
// -----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxList, wxObject)
void wxObjectListNode::DeleteData()
{
delete (wxObject *)GetData();
@@ -545,6 +553,8 @@ void wxObjectListNode::DeleteData()
// wxStringList
// -----------------------------------------------------------------------------
IMPLEMENT_DYNAMIC_CLASS(wxStringList, wxObject)
// instead of WX_DEFINE_LIST(wxStringListBase) we define this function
// ourselves
void wxStringListNode::DeleteData()
@@ -670,3 +680,6 @@ void wxStringList::Sort()
delete [] array;
}
#endif // wxLIST_COMPATIBILITY