summaryrefslogtreecommitdiff
path: root/src/common/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/defines.h')
-rw-r--r--src/common/defines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/defines.h b/src/common/defines.h
index 483a4eb1..c6a9d027 100644
--- a/src/common/defines.h
+++ b/src/common/defines.h
@@ -132,7 +132,7 @@ static inline Element elementFromString(const std::string &name)
table["ice"] = ELEMENT_ICE;
}
- std::map<const std::string, Element>::iterator val = table.find(name);
+ auto val = table.find(name);
return val == table.end() ? ELEMENT_ILLEGAL : (*val).second;
}
@@ -160,7 +160,7 @@ static inline DamageType damageTypeFromString(const std::string &name)
table["other"] = DAMAGE_OTHER;
}
- std::map<const std::string, DamageType>::iterator val = table.find(name);
+ auto val = table.find(name);
return val == table.end() ? DAMAGE_OTHER : (*val).second;
}