OSDN Git Service

Replace auto with const_iterator.
authorKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Tue, 12 Jul 2011 05:23:08 +0000 (14:23 +0900)
committerKazuhiro Fujieda <fujieda@users.sourceforge.jp>
Tue, 12 Jul 2011 05:23:08 +0000 (14:23 +0900)
xkeymacsdll/xkeymacsdll.cpp

index a6de7a6..9353a5d 100644 (file)
@@ -1285,7 +1285,7 @@ void CXkeymacsDll::CallMacro()
                m_bRecordingMacro = FALSE;\r
        UINT before = GetModifierState(FALSE);\r
        SetModifierState(0, before);\r
-       for (auto m = m_Macro.begin(); m != m_Macro.end(); m++)\r
+       for (std::list<KbdMacro>::const_iterator m = m_Macro.begin(); m != m_Macro.end(); m++)\r
                if (m->lParam & BEING_RELEASED)\r
                        ReleaseKey(static_cast<BYTE>(m->wParam));\r
                else\r
@@ -1385,7 +1385,7 @@ void CXkeymacsDll::CallFunction(int nFunctionID)
        BOOL bInitialized = FALSE;\r
        UINT before = GetModifierState(FALSE);\r
 \r
-       for (auto p = keybinds.begin(); p != keybinds.end(); p++) {\r
+       for (std::vector<KeyBind>::const_iterator p = keybinds.begin(); p != keybinds.end(); p++) {\r
                const int nCommandType = p->nCommandType;\r
                const BYTE bVk = p->bVk;\r
                int (*fCommand)() = nCommandType < MAX_COMMAND_TYPE ? Commands[m_Config.nCommandID[m_nApplicationID][nCommandType][bVk]].fCommand : NULL;\r