From 27256f195c41e483a12bd1506acbbde5dd1aa3ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Jan 2021 13:41:49 +0300 Subject: minor code cleaning --- plugins/BuddyExpectator/src/options.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'plugins/BuddyExpectator/src') diff --git a/plugins/BuddyExpectator/src/options.cpp b/plugins/BuddyExpectator/src/options.cpp index a95abc0a5c..467828b600 100644 --- a/plugins/BuddyExpectator/src/options.cpp +++ b/plugins/BuddyExpectator/src/options.cpp @@ -195,9 +195,7 @@ static INT_PTR CALLBACK OptionsFrameProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, break; case WM_NOTIFY: - { - NMHDR* nmhdr = (NMHDR*)lParam; - switch (nmhdr->code) { + switch (((NMHDR*)lParam)->code) { case PSN_APPLY: //iAbsencePeriod int num = GetDlgItemInt(hwndDlg, IDC_EDIT_ABSENCE, nullptr, FALSE); @@ -255,7 +253,6 @@ static INT_PTR CALLBACK OptionsFrameProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, } break; } - } return 0; } @@ -381,9 +378,9 @@ static INT_PTR CALLBACK PopupOptionsFrameProc(HWND hwndDlg, UINT uMsg, WPARAM wP } break; + case WM_NOTIFY: - { - NMHDR* nmhdr = (NMHDR*)lParam; + NMHDR *nmhdr = (NMHDR *)lParam; switch (nmhdr->code) { case PSN_APPLY: if (IsDlgButtonChecked(hwndDlg, IDC_COLORS_POPUP)) { @@ -416,7 +413,6 @@ static INT_PTR CALLBACK PopupOptionsFrameProc(HWND hwndDlg, UINT uMsg, WPARAM wP } break; } - } return 0; } -- cgit v1.2.3