summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2008-10-10 09:19:19 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2008-10-10 09:19:19 +0000
commit61a5caef2951f7e0e3a660514eb5d778d787df8f (patch)
treed6b22d35689b337ca880d3d3e4131e41d9f50df0 /src/resources/itemdb.cpp
parentcea90791bce5f502c33b7eefd9502e7c2452366a (diff)
downloadmana-61a5caef2951f7e0e3a660514eb5d778d787df8f.tar.gz
mana-61a5caef2951f7e0e3a660514eb5d778d787df8f.tar.bz2
mana-61a5caef2951f7e0e3a660514eb5d778d787df8f.tar.xz
mana-61a5caef2951f7e0e3a660514eb5d778d787df8f.zip
Some old uncommitted cleanup.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 202f4ba7..0f89f444 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -55,7 +55,7 @@ static char const *const fields[][2] =
{ "mp", N_("MP %+d") }
};
-ItemType itemTypeFromString (std::string name, int id = 0)
+static ItemType itemTypeFromString(const std::string &name, int id = 0)
{
if (name=="generic") return ITEM_UNUSABLE;
else if (name=="usable") return ITEM_USABLE;
@@ -73,7 +73,7 @@ ItemType itemTypeFromString (std::string name, int id = 0)
else return ITEM_UNUSABLE;
}
-WeaponType weaponTypeFromString (std::string name, int id = 0)
+static WeaponType weaponTypeFromString(const std::string &name, int id = 0)
{
if (name=="knife") return WPNTYPE_KNIFE;
else if (name=="sword") return WPNTYPE_SWORD;