[icinga-checkins] icinga.org: icinga2/master: Fixed incorrect argument name.

git at icinga.org git at icinga.org
Mon Jan 21 13:39:37 CET 2013


Module: icinga2
Branch: master
Commit: 5b4712c55bfbaac6f3fa7addf5a23494fe7642b4
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=5b4712c55bfbaac6f3fa7addf5a23494fe7642b4

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Mon Jan 21 13:21:10 2013 +0100

Fixed incorrect argument name.

---

 lib/base/qstring.cpp |    4 ++--
 lib/base/qstring.h   |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/base/qstring.cpp b/lib/base/qstring.cpp
index 03f0a3c..4ac2d20 100644
--- a/lib/base/qstring.cpp
+++ b/lib/base/qstring.cpp
@@ -114,9 +114,9 @@ size_t String::FindFirstOf(const char *s, size_t pos) const
 	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)
diff --git a/lib/base/qstring.h b/lib/base/qstring.h
index 4cd81b1..bb3065f 100644
--- a/lib/base/qstring.h
+++ b/lib/base/qstring.h
@@ -66,7 +66,7 @@ public:
 	size_t GetLength(void) 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);
 
 	template<typename Predicate>





More information about the icinga-checkins mailing list