From a39f63cdfa5ce15b22f294a8bb1db3a036ce462d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 30 Mar 2012 02:05:40 +0300 Subject: One part of fixes after auto checking. --- src/utils/stringutils.cpp | 4 ++-- src/utils/stringutils.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/utils') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index b1e464005..5ec7fb931 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -196,14 +196,14 @@ const std::string findSameSubstringI(const std::string &s1, return s1.substr(0, minLength); } -unsigned long findI(std::string str, std::string subStr) +size_t findI(std::string str, std::string subStr) { str = toLower(str); subStr = toLower(subStr); return str.find(subStr); } -unsigned long findI(std::string text, StringVect &list) +size_t findI(std::string text, StringVect &list) { std::string str = toLower(text); unsigned long idx; diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 9fdc0d2f6..94c455025 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -134,9 +134,9 @@ int compareStrI(const std::string &a, const std::string &b); */ bool isWordSeparator(char chr); -unsigned long findI(std::string str, std::string subStr); +size_t findI(std::string str, std::string subStr); -unsigned long findI(std::string text, StringVect &list); +size_t findI(std::string text, StringVect &list); const std::string encodeStr(unsigned int value, unsigned int size = 0); -- cgit v1.2.3-70-g09d2