]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/list.h
fixed typo in wxString::swap() which was completely broken
[wxWidgets.git] / include / wx / list.h
index 791870083debb26293dd6c292b4f4f2fc009557e..d2c4bf87fc802b9f25503ee05f24038b12faab87 100644 (file)
@@ -273,6 +273,9 @@ protected:
 
     // operations
         // append to end of list
+    wxNodeBase *Prepend(void *object)
+        { return (wxNodeBase *)wxListBase::Insert(object); }
+        // append to beginning of list
     wxNodeBase *Append(void *object);
         // insert a new item at the beginning of the list
     wxNodeBase *Insert(void *object) { return Insert( (wxNodeBase*)NULL, object); }
@@ -538,6 +541,10 @@ public:
         // makes a copy of the string
     wxNode *Add(const wxChar *s)
         { return (wxNode *)wxStringListBase::Append(copystring(s)); }
+        
+        // Append to beginning of list
+    wxNode *Prepend(const wxChar *s)
+        { return (wxNode *)wxStringListBase::Insert(copystring(s)); }
 
     bool Delete(const wxChar *s);