- qsort (array, N, sizeof (char *), wx_comparestrings);
- Clear();
+ qsort (array, N, sizeof (wxChar *), wx_comparestrings);
+
+ i = 0;
+ for ( node = GetFirst(); node; node = node->GetNext() )
+ node->SetData( array[i++] );
+
+ delete [] array;
+}
+
+wxNode *wxStringList::Add(const wxChar *s)
+{
+ return (wxNode *)(wxStringListBase::Node *)
+ wxStringListBase::Append(MYcopystring(s));
+}
+
+wxNode *wxStringList::Prepend(const wxChar *s)
+{
+ return (wxNode *)(wxStringListBase::Node *)
+ wxStringListBase::Insert(MYcopystring(s));
+}
+
+#endif // wxLIST_COMPATIBILITY