diff options
author | George Hazan <ghazan@miranda.im> | 2018-02-04 16:41:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-02-04 16:41:33 +0300 |
commit | 60a76a56531ceb2bb6d03add1de32ceeef832be9 (patch) | |
tree | 5c5bd1fa106c6728eb55a0240a70ea47b96d2573 /plugins/TabSRMM/src | |
parent | 12f4667e828e29f09913a414b20687ae707e6bd8 (diff) |
old code reverted to use the loop counter correctly
Diffstat (limited to 'plugins/TabSRMM/src')
-rw-r--r-- | plugins/TabSRMM/src/chat_window.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp index d7a9cb4cf2..042d6800f5 100644 --- a/plugins/TabSRMM/src/chat_window.cpp +++ b/plugins/TabSRMM/src/chat_window.cpp @@ -1592,13 +1592,13 @@ INT_PTR CALLBACK CChatRoomDlg::FilterWndProc(HWND hwndDlg, UINT uMsg, WPARAM wPa case WM_CLOSE: if (wParam == 1 && lParam == 1) { - int iFlags = 0, i; + int iFlags = 0; DWORD dwMask = 0; - for (auto &it : _eventorder) { + for (int i = 0; i < _countof(_eventorder); i++) { int result = IsDlgButtonChecked(hwndDlg, IDC_1 + i); - dwMask |= (result != BST_INDETERMINATE ? it : 0); - iFlags |= (result == BST_CHECKED ? it : 0); + dwMask |= (result != BST_INDETERMINATE ? _eventorder[i] : 0); + iFlags |= (result == BST_CHECKED ? _eventorder[i] : 0); } if (iFlags & GC_EVENT_ADDSTATUS) @@ -1617,10 +1617,10 @@ INT_PTR CALLBACK CChatRoomDlg::FilterWndProc(HWND hwndDlg, UINT uMsg, WPARAM wPa dwMask = iFlags = 0; - for (auto &it : _eventorder) { + for (int i = 0; i < _countof(_eventorder); i++) { int result = IsDlgButtonChecked(hwndDlg, IDC_P1 + i); - dwMask |= (result != BST_INDETERMINATE ? it : 0); - iFlags |= (result == BST_CHECKED ? it : 0); + dwMask |= (result != BST_INDETERMINATE ? _eventorder[i] : 0); + iFlags |= (result == BST_CHECKED ? _eventorder[i] : 0); } if (iFlags & GC_EVENT_ADDSTATUS) @@ -1639,10 +1639,10 @@ INT_PTR CALLBACK CChatRoomDlg::FilterWndProc(HWND hwndDlg, UINT uMsg, WPARAM wPa dwMask = iFlags = 0; - for (auto &it : _eventorder) { + for (int i = 0; i < _countof(_eventorder); i++) { int result = IsDlgButtonChecked(hwndDlg, IDC_T1 + i); - dwMask |= (result != BST_INDETERMINATE ? it : 0); - iFlags |= (result == BST_CHECKED ? it : 0); + dwMask |= (result != BST_INDETERMINATE ? _eventorder[i] : 0); + iFlags |= (result == BST_CHECKED ? _eventorder[i] : 0); } if (iFlags & GC_EVENT_ADDSTATUS) iFlags |= GC_EVENT_REMOVESTATUS; |