From cf06c252fd355532a275ea49057d5a36b5b8e17d Mon Sep 17 00:00:00 2001 From: Kazuhiro Fujieda Date: Sun, 26 Jun 2011 10:59:23 +0900 Subject: [PATCH] Add declarations of index variables. --- xkeymacs/propertiesadvanced.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xkeymacs/propertiesadvanced.cpp b/xkeymacs/propertiesadvanced.cpp index cde583d..109c156 100644 --- a/xkeymacs/propertiesadvanced.cpp +++ b/xkeymacs/propertiesadvanced.cpp @@ -190,7 +190,8 @@ void CPropertiesAdvanced::InitCategoryList() } BOOL bExist = FALSE; - for (int i = 0; nCategoryIDs[i]; ++i) { + int i; + for (i = 0; nCategoryIDs[i]; ++i) { if (nCategoryIDs[i] == nCategoryID) { bExist = TRUE; } @@ -526,7 +527,8 @@ void CPropertiesAdvanced::SetCommandID(int nCommandType, int nKey, int nCommandI // Set C-x if it is needed. if ((nCommandType & CONTROLX)) { // Get CommandID of C-x. - for (int nCommandIDofC_x = 0; nCommandIDofC_x < MAX_COMMAND; ++nCommandIDofC_x) { + int nCommandIDofC_x; + for (nCommandIDofC_x = 0; nCommandIDofC_x < MAX_COMMAND; ++nCommandIDofC_x) { if (!_tcsicmp(CCommands::GetCommandName(nCommandIDofC_x), _T("C-x"))) { break; } -- 2.11.0