diff options
author | George Hazan <ghazan@miranda.im> | 2021-01-06 13:41:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-01-06 13:41:49 +0300 |
commit | 27256f195c41e483a12bd1506acbbde5dd1aa3ec (patch) | |
tree | 1b3018f641c83883296cc065ca228fca04f4025f /plugins/BuddyExpectator/src | |
parent | c8283bbae2f7a24c21c862f1769e8566b0b5144f (diff) |
minor code cleaning
Diffstat (limited to 'plugins/BuddyExpectator/src')
-rw-r--r-- | plugins/BuddyExpectator/src/options.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
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;
}
|