fixed wxList copy ctor (patch 985473)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28478 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -446,11 +446,8 @@ public:
|
|||||||
wxListBase(void *object, ... /* terminate with NULL */);
|
wxListBase(void *object, ... /* terminate with NULL */);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// copy ctor and assignment operator
|
void Assign(const wxListBase& list)
|
||||||
wxListBase(const wxListBase& list) : wxObject()
|
{ Clear(); DoCopy(list); }
|
||||||
{ Init(); DoCopy(list); }
|
|
||||||
wxListBase& operator=(const wxListBase& list)
|
|
||||||
{ Clear(); DoCopy(list); return *this; }
|
|
||||||
|
|
||||||
// get list head/tail
|
// get list head/tail
|
||||||
wxNodeBase *GetFirst() const { return m_nodeFirst; }
|
wxNodeBase *GetFirst() const { return m_nodeFirst; }
|
||||||
@@ -604,11 +601,13 @@ private:
|
|||||||
\
|
\
|
||||||
name(wxKeyType keyType = wxKEY_NONE) : wxListBase(keyType) \
|
name(wxKeyType keyType = wxKEY_NONE) : wxListBase(keyType) \
|
||||||
{ } \
|
{ } \
|
||||||
|
name(const name& list) : wxListBase(list.GetKeyType()) \
|
||||||
|
{ Assign(list); } \
|
||||||
name(size_t count, T *elements[]) \
|
name(size_t count, T *elements[]) \
|
||||||
: wxListBase(count, (void **)elements) { } \
|
: wxListBase(count, (void **)elements) { } \
|
||||||
\
|
\
|
||||||
name& operator=(const name& list) \
|
name& operator=(const name& list) \
|
||||||
{ (void) wxListBase::operator=(list); return *this; } \
|
{ Assign(list); return *this; } \
|
||||||
\
|
\
|
||||||
nodetype *GetFirst() const \
|
nodetype *GetFirst() const \
|
||||||
{ return (nodetype *)wxListBase::GetFirst(); } \
|
{ return (nodetype *)wxListBase::GetFirst(); } \
|
||||||
|
Reference in New Issue
Block a user