]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
fixed arguments to "test"
[wxWidgets.git] / include / wx / list.h
index f42942f4420b4072ee0dcc6332833fd52ed76602..ff710bd22c3914b4500ecc3cc67c359024c66bed 100644 (file)
@@ -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; }