X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d44d0cbd7343e36ddd3657dd97cd5eb7018d2585..d8af1bf97d364e0f499fb509cb9639d040b52186:/include/wx/arrstr.h 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