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
This commit is contained in:
Vadim Zeitlin
2000-06-07 13:12:01 +00:00
parent ab88076643
commit a38940ab11

View File

@@ -388,6 +388,9 @@ private:
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) \
{ return (name&)wxListBase::operator=(list); } \
\
nodetype *GetFirst() const \ nodetype *GetFirst() const \
{ return (nodetype *)wxListBase::GetFirst(); } \ { return (nodetype *)wxListBase::GetFirst(); } \
nodetype *GetLast() const \ nodetype *GetLast() const \
@@ -482,6 +485,9 @@ class WXDLLEXPORT wxList : public wxObjectList
public: public:
wxList(int key_type = wxKEY_NONE) : wxObjectList((wxKeyType)key_type) { } wxList(int key_type = wxKEY_NONE) : wxObjectList((wxKeyType)key_type) { }
wxList& operator=(const wxList& list)
{ return (wxList&)wxListBase::operator=(list); }
// compatibility methods // compatibility methods
void Sort(wxSortCompareFunction compfunc) { wxListBase::Sort(compfunc); } void Sort(wxSortCompareFunction compfunc) { wxListBase::Sort(compfunc); }