]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/string.h
wxString::substr() bug fixed
[wxWidgets.git] / include / wx / string.h
index 29be6c677036cb01ece4225420b36dca423cd135..a47ca920c5a4c4b48c936cfe43946b57c4807e0c 100644 (file)
@@ -859,7 +859,8 @@ public:
               const wxChar* sz, size_t nCount = npos) const;
 
   // substring extraction
-  wxString substr(size_t nStart = 0, size_t nLen = npos) const;
+  wxString substr(size_t nStart = 0, size_t nLen = npos) const
+    { return Mid(nStart, nLen); }
 #endif // wxSTD_STRING_COMPATIBILITY
 };