]> git.saurik.com Git - wxWidgets.git/commitdiff
extended RemoveLast() to take size_t parameter
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Jan 2001 02:14:00 +0000 (02:14 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 28 Jan 2001 02:14:00 +0000 (02:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/string.h

index bb7bf7071e2fb6857a6a7bd866aabd94d51f5a91..13dffa92120c5bac6b96d3e50783d8b451e14253 100644 (file)
@@ -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 ); }