summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-07-04 03:07:26 +0300
committerAndrei Karas <akaras@inbox.ru>2011-07-04 03:41:46 +0300
commit4b2cb3433c82ba4ba28be8de82e0a49df7f3e388 (patch)
tree60f063d56d0aa316cfee4c1e1340b69cc992ede1 /src/utils
parentd5eb424dcd214b4646a960e04b9271e70b096856 (diff)
downloadmv-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.gz
mv-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.bz2
mv-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.tar.xz
mv-4b2cb3433c82ba4ba28be8de82e0a49df7f3e388.zip
Replace some lists to vectors.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/stringutils.cpp4
-rw-r--r--src/utils/stringutils.h2
2 files changed, 3 insertions, 3 deletions
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<std::string> &list)
+unsigned long findI(std::string str, std::vector<std::string> &list)
{
str = toLower(str);
unsigned long idx;
- for (std::list<std::string>::iterator i = list.begin();
+ for (std::vector<std::string>::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<std::string> &list);
+unsigned long findI(std::string str, std::vector<std::string> &list);
const std::string encodeStr(unsigned int value, unsigned int size = 0);