X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6108b321fc61c42c40ba5ea41a278abc8af3f47e..2b96d0fb4be7d684c17987d74f8f92d0cfe345b5:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index 23ab3e1ff8..7b542c64a2 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 __DARWIN__ + ~wxList() { } +#endif wxList& operator=(const wxList& list) { return (wxList&)wxListBase::operator=(list); }