X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6108b321fc61c42c40ba5ea41a278abc8af3f47e..bf7d7ee7062f7f6028df40e43745235658e38b4d:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index 23ab3e1ff8..283c4586be 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -187,6 +187,9 @@ class WXDLLEXPORT wxListBase : public wxObject { friend class wxNodeBase; // should be able to call DetachNode() friend class wxHashTableBase; // should be able to call untyped Find() +private: + // common part of all ctors + void Init(wxKeyType keyType = wxKEY_NONE); // Must be declared before it's used (for VC++ 1.5) public: // default ctor & dtor wxListBase(wxKeyType keyType = wxKEY_NONE) { Init(keyType); } @@ -308,8 +311,6 @@ protected: private: // helpers - // common part of all ctors - void Init(wxKeyType keyType = wxKEY_NONE); // common part of copy ctor and assignment operator void DoCopy(const wxListBase& list); // common part of all Append()s @@ -484,6 +485,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); }