From 4b2cb3433c82ba4ba28be8de82e0a49df7f3e388 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Jul 2011 03:07:26 +0300 Subject: Replace some lists to vectors. --- src/utils/stringutils.cpp | 4 ++-- src/utils/stringutils.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp index 953cbf58a..ad2e52965 100644 --- a/src/utils/stringutils.cpp +++ b/src/utils/stringutils.cpp @@ -181,11 +181,11 @@ unsigned long findI(std::string str, std::string subStr) return str.find(subStr); } -unsigned long findI(std::string str, std::list &list) +unsigned long findI(std::string str, std::vector &list) { str = toLower(str); unsigned long idx; - for (std::list::iterator i = list.begin(); + for (std::vector::iterator i = list.begin(); i != list.end(); ++i) { std::string subStr = toLower(*i); diff --git a/src/utils/stringutils.h b/src/utils/stringutils.h index 140baf944..4693b5425 100644 --- a/src/utils/stringutils.h +++ b/src/utils/stringutils.h @@ -133,7 +133,7 @@ bool isWordSeparator(char chr); unsigned long findI(std::string str, std::string subStr); -unsigned long findI(std::string str, std::list &list); +unsigned long findI(std::string str, std::vector &list); const std::string encodeStr(unsigned int value, unsigned int size = 0); -- cgit v1.2.3-60-g2f50