From: Kazuhiro Fujieda Date: Sun, 26 Jun 2011 01:59:23 +0000 (+0900) Subject: Add declarations of index variables. X-Git-Tag: snap-110702~7 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=cf06c252fd355532a275ea49057d5a36b5b8e17d;p=xkeymacs%2Fxkeymacs.git Add declarations of index variables. --- 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; }