X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d44d0cbd7343e36ddd3657dd97cd5eb7018d2585..b0282524429ff336186d0e491a1dddc7fa207f44:/include/wx/arrstr.h?ds=sidebyside

diff --git a/include/wx/arrstr.h b/include/wx/arrstr.h
index 70bddf1737..18d7651c4f 100644
--- a/include/wx/arrstr.h
+++ b/include/wx/arrstr.h
@@ -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