wxString::substr() bug fixed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4892 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-12-10 16:29:34 +00:00
parent 36cc39686a
commit 8c264b23ad
2 changed files with 2 additions and 12 deletions

View File

@@ -1643,17 +1643,6 @@ size_t wxString::find_last_not_of(wxChar ch, size_t nStart) const
return npos;
}
wxString wxString::substr(size_t nStart, size_t nLen) const
{
// npos means 'take all'
if ( nLen == npos )
nLen = 0;
wxASSERT( nStart + nLen <= Len() );
return wxString(c_str() + nStart, nLen == npos ? 0 : nLen);
}
wxString& wxString::erase(size_t nStart, size_t nLen)
{
wxString strTmp(c_str(), nStart);