X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/cae92a498867292d78d7191120b5d379091e86cb..dad49cc7f9d41e241c647bf7bae0ba7d18fc972a:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index c9c679d24a..d607fe330f 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -333,7 +333,7 @@ inline const void *wxListCastElementToVoidPtr(const wxString& str) ~liT() { Clear(); } \ \ /* It needs access to our EmptyList */ \ - friend decl compatibility_iterator; \ + friend class compatibility_iterator; \ } #define WX_DECLARE_LIST(elementtype, listname) \ @@ -491,7 +491,7 @@ class WXDLLIMPEXP_FWD_BASE wxList; class WXDLLIMPEXP_BASE wxListBase : public wxObject { -friend class WXDLLIMPEXP_FWD_BASE wxNodeBase; // should be able to call DetachNode() +friend class wxNodeBase; // should be able to call DetachNode() friend class wxHashTableBase; // should be able to call untyped Find() public: @@ -1182,7 +1182,7 @@ public: #if !wxUSE_STL wxList& operator=(const wxList& list) - { (void) wxListBase::operator=(list); return *this; } + { Assign(list); return *this; } // compatibility methods void Sort(wxSortCompareFunction compfunc) { wxListBase::Sort(compfunc); }