]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/arrstr.h
wxCalendarCtrl workaround for occasional wrong combobox height reporting on wxMSW
[wxWidgets.git] / include / wx / arrstr.h
index 70bddf1737ba1b60ca278f6b5fb2b3176f21e439..18d7651c4f94d281478beb53e11a903af72cbe68 100644 (file)
@@ -50,6 +50,12 @@ public:
     void Sort(bool reverseOrder = false);
     void Sort(CompareFunction function);
     void Sort(CMPFUNCwxString function) { wxArrayStringBase::Sort(function); }
+
+    size_t Add(const wxString& string, size_t copies = 1)
+    {
+        wxArrayStringBase::Add(string, copies);
+        return size() - copies;
+    }
 };
 
 class WXDLLIMPEXP_BASE wxSortedArrayString : public wxSortedArrayStringBase