From 83a136ac4a84bf355622265ae3058546985ccc91 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 28 Jan 2001 02:14:00 +0000 Subject: [PATCH] extended RemoveLast() to take size_t parameter git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/string.h b/include/wx/string.h index bb7bf7071e..13dffa9212 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 ); }