added untyped Sort() for compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1038 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1998-11-25 00:30:06 +00:00
parent 2600d8ee0c
commit 3bef6c4cf3

View File

@@ -36,6 +36,7 @@
#include "wx/defs.h"
#include "wx/debug.h"
#include "wx/object.h"
#include "wx/string.h"
// due to circular header dependencies this function has to be declared here
// (normally it's found in utils.h which includes itself list.h...)
@@ -425,6 +426,8 @@ public:
wxList(int key_type = wxKEY_NONE) : wxObjectList((wxKeyType)key_type) { }
// compatibility methods
void Sort(wxSortCompareFunction compfunc) { wxListBase::Sort(compfunc); }
int Number() const { return GetCount(); }
wxNode *First() const { return (wxNode *)GetFirst(); }
wxNode *Last() const { return (wxNode *)GetLast(); }