X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d44d0cbd7343e36ddd3657dd97cd5eb7018d2585..d95c5149add596d0dec940599332a24edf96dc38:/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