X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bcaa23de098c1276b3f35716c9ea8b73cf3599bd..0902e71a160c215d9f65214a19a53facd1cf7ab9:/include/wx/list.h diff --git a/include/wx/list.h b/include/wx/list.h index f42942f442..ff710bd22c 100644 --- a/include/wx/list.h +++ b/include/wx/list.h @@ -501,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; }