Fixed incorrect argument name.

This commit is contained in:
Gunnar Beutner 2013-01-21 13:21:10 +01:00
parent 853dbfa82e
commit 5b4712c55b
2 changed files with 3 additions and 3 deletions

View File

@ -114,9 +114,9 @@ size_t String::FindFirstOf(const char *s, size_t pos) const
return m_Data.find_first_of(s, pos); return m_Data.find_first_of(s, pos);
} }
String String::SubStr(size_t first, size_t second) const String String::SubStr(size_t first, size_t len) const
{ {
return m_Data.substr(first, second); return m_Data.substr(first, len);
} }
void String::Replace(size_t first, size_t second, const String& str) void String::Replace(size_t first, size_t second, const String& str)

View File

@ -66,7 +66,7 @@ public:
size_t GetLength(void) const; size_t GetLength(void) const;
size_t FindFirstOf(const char *s, size_t pos = 0) const; size_t FindFirstOf(const char *s, size_t pos = 0) const;
String SubStr(size_t first, size_t second) const; String SubStr(size_t first, size_t len) const;
void Replace(size_t first, size_t second, const String& str); void Replace(size_t first, size_t second, const String& str);
template<typename Predicate> template<typename Predicate>