X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d8996187144eba2d9a2d0e91e7b78089721967af..0902e71a160c215d9f65214a19a53facd1cf7ab9:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index 7cad34a420..ff710bd22c 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -186,7 +186,8 @@ private: // ----------------------------------------------------------------------------- class WXDLLEXPORT wxListBase : public wxObject { -friend class 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: // default ctor & dtor wxListBase(wxKeyType keyType = wxKEY_NONE) { Init(keyType); } @@ -500,7 +501,7 @@ public: // copying the string list: the strings are copied, too (extremely // inefficient!) - wxStringList(const wxStringList& other) { DoCopy(other); } + wxStringList(const wxStringList& other) { DeleteContents(TRUE); DoCopy(other); } wxStringList& operator=(const wxStringList& other) { Clear(); DoCopy(other); return *this; }