From a38940ab119905afbeaae45a6ce7292616230534 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 7 Jun 2000 13:12:01 +0000 Subject: [PATCH] apparently explicit operator=() is needed by Solaris C++ 5.0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_2_BRANCH@7542 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/list.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/wx/list.h b/include/wx/list.h index 15a76aa2da..d475c569b4 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -388,6 +388,9 @@ private: name(size_t count, T *elements[]) \ : wxListBase(count, (void **)elements) { } \ \ + name& operator=(const name& list) \ + { return (name&)wxListBase::operator=(list); } \ + \ nodetype *GetFirst() const \ { return (nodetype *)wxListBase::GetFirst(); } \ nodetype *GetLast() const \ @@ -482,6 +485,9 @@ class WXDLLEXPORT wxList : public wxObjectList public: wxList(int key_type = wxKEY_NONE) : wxObjectList((wxKeyType)key_type) { } + wxList& operator=(const wxList& list) + { return (wxList&)wxListBase::operator=(list); } + // compatibility methods void Sort(wxSortCompareFunction compfunc) { wxListBase::Sort(compfunc); }