From d0adcf0e3c8a1db5e06bbbb8ae950ea5ebeeb8eb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 4 Jan 2015 15:50:56 +0300 Subject: Add stringmap typedefs. --- src/input/inputmanager.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/input/inputmanager.cpp') 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::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::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::const_iterator it = mChatMap.find(cmd); + const StringIntMapCIter it = mChatMap.find(cmd); if (it != mChatMap.end()) { ActionFuncPtr func = *(inputActionData[(*it).second].action); -- cgit v1.2.3-70-g09d2