Applied wxList::Prepend() patch.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14362 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -273,6 +273,9 @@ protected:
|
|||||||
|
|
||||||
// operations
|
// operations
|
||||||
// append to end of list
|
// append to end of list
|
||||||
|
wxNodeBase *Prepend(void *object)
|
||||||
|
{ return (wxNodeBase *)wxListBase::Insert(object); }
|
||||||
|
// append to beginning of list
|
||||||
wxNodeBase *Append(void *object);
|
wxNodeBase *Append(void *object);
|
||||||
// insert a new item at the beginning of the list
|
// insert a new item at the beginning of the list
|
||||||
wxNodeBase *Insert(void *object) { return Insert( (wxNodeBase*)NULL, object); }
|
wxNodeBase *Insert(void *object) { return Insert( (wxNodeBase*)NULL, object); }
|
||||||
@@ -538,6 +541,10 @@ public:
|
|||||||
// makes a copy of the string
|
// makes a copy of the string
|
||||||
wxNode *Add(const wxChar *s)
|
wxNode *Add(const wxChar *s)
|
||||||
{ return (wxNode *)wxStringListBase::Append(copystring(s)); }
|
{ return (wxNode *)wxStringListBase::Append(copystring(s)); }
|
||||||
|
|
||||||
|
// Append to beginning of list
|
||||||
|
wxNode *Prepend(const wxChar *s)
|
||||||
|
{ return (wxNode *)wxStringListBase::Insert(copystring(s)); }
|
||||||
|
|
||||||
bool Delete(const wxChar *s);
|
bool Delete(const wxChar *s);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user