summaryrefslogtreecommitdiff
path: root/src/input/inputmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-01-04 15:50:56 +0300
committerAndrei Karas <akaras@inbox.ru>2015-01-04 15:50:56 +0300
commitd0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb (patch)
tree33e51821fd54d88d46df4e328f60ba148971ca55 /src/input/inputmanager.cpp
parent39cec87cfa8b1605239f4b06388bbb07f2a16a89 (diff)
downloadmv-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.tar.gz
mv-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.tar.bz2
mv-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.tar.xz
mv-d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb.zip
Add stringmap typedefs.
Diffstat (limited to 'src/input/inputmanager.cpp')
-rw-r--r--src/input/inputmanager.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/input/inputmanager.cpp b/src/input/inputmanager.cpp
index 48bf1b083..7500116cf 100644
--- a/src/input/inputmanager.cpp
+++ b/src/input/inputmanager.cpp
@@ -439,8 +439,7 @@ std::string InputManager::getKeyValueString(const int index) const
std::string InputManager::getKeyValueByName(const std::string &keyName)
{
- const std::map<std::string, int>::const_iterator
- it = mNameMap.find(keyName);
+ const StringIntMapCIter it = mNameMap.find(keyName);
if (it == mNameMap.end())
return std::string();
@@ -449,8 +448,7 @@ std::string InputManager::getKeyValueByName(const std::string &keyName)
std::string InputManager::getKeyValueByNameLong(const std::string &keyName)
{
- const std::map<std::string, int>::const_iterator
- it = mNameMap.find(keyName);
+ const StringIntMapCIter it = mNameMap.find(keyName);
if (it == mNameMap.end())
return std::string();
@@ -770,7 +768,7 @@ bool InputManager::executeChatCommand(const std::string &cmd,
const std::string &args,
ChatTab *const tab)
{
- const std::map<std::string, int>::const_iterator it = mChatMap.find(cmd);
+ const StringIntMapCIter it = mChatMap.find(cmd);
if (it != mChatMap.end())
{
ActionFuncPtr func = *(inputActionData[(*it).second].action);