From: Václav Slavík Date: Thu, 27 Sep 2007 15:01:12 +0000 (+0000) Subject: copy the list in wxList::operator=(), for consistency with typed macro-based lists X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ad259ba5b263acd502b2bad4c73e58e00d353702 copy the list in wxList::operator=(), for consistency with typed macro-based lists git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48966 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/list.h b/include/wx/list.h index 3bd75b3957..d607fe330f 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -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); }