From 2d7ce624389d4111b27dc6f2dc7a9b4ba2bf97a4 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 11 Nov 2014 23:48:17 +0100 Subject: [PATCH] Add missing default arguments refs #7622 --- lib/base/string.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/base/string.hpp b/lib/base/string.hpp index c117cef3c..dd27693f8 100644 --- a/lib/base/string.hpp +++ b/lib/base/string.hpp @@ -161,37 +161,37 @@ public: return m_Data; } - inline SizeType Find(const String& str, SizeType pos) const + inline SizeType Find(const String& str, SizeType pos = 0) const { return m_Data.find(str, pos); } - inline SizeType RFind(const String& str, SizeType pos) const + inline SizeType RFind(const String& str, SizeType pos = NPos) const { return m_Data.rfind(str, pos); } - inline SizeType FindFirstOf(const char *s, SizeType pos) const + inline SizeType FindFirstOf(const char *s, SizeType pos = 0) const { return m_Data.find_first_of(s, pos); } - inline SizeType FindFirstOf(char ch, SizeType pos) const + inline SizeType FindFirstOf(char ch, SizeType pos = 0) const { return m_Data.find_first_of(ch, pos); } - inline SizeType FindFirstNotOf(const char *s, SizeType pos) const + inline SizeType FindFirstNotOf(const char *s, SizeType pos = 0) const { return m_Data.find_first_not_of(s, pos); } - inline SizeType FindFirstNotOf(char ch, SizeType pos) const + inline SizeType FindFirstNotOf(char ch, SizeType pos = 0) const { return m_Data.find_first_not_of(ch, pos); } - inline String SubStr(SizeType first, SizeType len) const + inline String SubStr(SizeType first, SizeType len = NPos) const { return m_Data.substr(first, len); }