summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/chat_window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/TabSRMM/src/chat_window.cpp')
-rw-r--r--plugins/TabSRMM/src/chat_window.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/TabSRMM/src/chat_window.cpp b/plugins/TabSRMM/src/chat_window.cpp
index 89fcf34b19..d7a9cb4cf2 100644
--- a/plugins/TabSRMM/src/chat_window.cpp
+++ b/plugins/TabSRMM/src/chat_window.cpp
@@ -1595,10 +1595,10 @@ INT_PTR CALLBACK CChatRoomDlg::FilterWndProc(HWND hwndDlg, UINT uMsg, WPARAM wPa
int iFlags = 0, i;
DWORD dwMask = 0;
- for (i = 0; i < _countof(_eventorder); i++) {
+ for (auto &it : _eventorder) {
int result = IsDlgButtonChecked(hwndDlg, IDC_1 + i);
- dwMask |= (result != BST_INDETERMINATE ? _eventorder[i] : 0);
- iFlags |= (result == BST_CHECKED ? _eventorder[i] : 0);
+ dwMask |= (result != BST_INDETERMINATE ? it : 0);
+ iFlags |= (result == BST_CHECKED ? it : 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 (i = 0; i < _countof(_eventorder); i++) {
+ for (auto &it : _eventorder) {
int result = IsDlgButtonChecked(hwndDlg, IDC_P1 + i);
- dwMask |= (result != BST_INDETERMINATE ? _eventorder[i] : 0);
- iFlags |= (result == BST_CHECKED ? _eventorder[i] : 0);
+ dwMask |= (result != BST_INDETERMINATE ? it : 0);
+ iFlags |= (result == BST_CHECKED ? it : 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 (i = 0; i < _countof(_eventorder); i++) {
+ for (auto &it : _eventorder) {
int result = IsDlgButtonChecked(hwndDlg, IDC_T1 + i);
- dwMask |= (result != BST_INDETERMINATE ? _eventorder[i] : 0);
- iFlags |= (result == BST_CHECKED ? _eventorder[i] : 0);
+ dwMask |= (result != BST_INDETERMINATE ? it : 0);
+ iFlags |= (result == BST_CHECKED ? it : 0);
}
if (iFlags & GC_EVENT_ADDSTATUS)
iFlags |= GC_EVENT_REMOVESTATUS;