summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 577b9947..fec52150 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -29,7 +29,7 @@
#include "../utils/dtor.h"
#include "../utils/gettext.h"
-#include "../utils/trim.h"
+#include "../utils/stringutils.h"
#include "../utils/xml.h"
namespace
@@ -124,12 +124,7 @@ void ItemDB::load()
if (itr == mNamedItemInfos.end())
{
std::string temp = name;
- trim(temp);
-
- for (unsigned int i = 0; i < temp.size(); i++)
- {
- temp[i] = (char) tolower(temp[i]);
- }
+ toLower(trim(temp));
mNamedItemInfos[temp] = itemInfo;
}