From: Vadim Zeitlin Date: Sat, 3 Feb 2001 14:53:12 +0000 (+0000) Subject: fixed previous commit (no changes) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/28a156b14caceb3869034dd83b033c10f1fa0b4e fixed previous commit (no changes) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9271 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/string.h b/include/wx/string.h index cc42d4d53e..49c27ba2f7 100644 --- a/include/wx/string.h +++ b/include/wx/string.h @@ -727,7 +727,7 @@ public: size_t Index(wxChar ch) const { return Find(ch); } // use Truncate wxString& Remove(size_t pos) { return Truncate(pos); } - wxString& RemoveLast() { return Truncate(Len() - 1); } + wxString& RemoveLast(size_t n = 1) { return Truncate(Len() - n); } wxString& Remove(size_t nStart, size_t nLen) { return erase( nStart, nLen ); } @@ -1012,6 +1012,7 @@ public: void Remove(const wxChar *sz); // remove item by index void Remove(size_t nIndex); + void RemoveAt(size_t nIndex) { Remove(nIndex); } // sorting // sort array elements in alphabetical order (or reversed alphabetical