X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f6bcfd974ef26faf6f91a62cac09827e09463fd1..c854c7d92cd804949cd5e520a65691eb2c1e050b:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index d475c569b4..f5bf5336cc 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -247,7 +247,7 @@ public: protected: // copy ctor and assignment operator wxListBase(const wxListBase& list) - { DoCopy(list); } + { Init(); DoCopy(list); } wxListBase& operator=(const wxListBase& list) { Clear(); DoCopy(list); return *this; } @@ -484,6 +484,9 @@ class WXDLLEXPORT wxList : public wxObjectList { public: wxList(int key_type = wxKEY_NONE) : wxObjectList((wxKeyType)key_type) { } +#ifdef __WXMAC_X__ + ~wxList() {} // Added min for Mac X +#endif wxList& operator=(const wxList& list) { return (wxList&)wxListBase::operator=(list); }