summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/stringutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 1994cda98..f1fd8d82b 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -206,12 +206,12 @@ size_t findI(std::string str, std::string subStr)
size_t findI(std::string text, StringVect &list)
{
- std::string str = toLower(text);
+ toLower(text);
FOR_EACH (StringVectCIter, i, list)
{
std::string subStr = *i;
subStr = toLower(subStr);
- const size_t idx = str.find(subStr);
+ const size_t idx = text.find(subStr);
if (idx != std::string::npos)
return idx;
}