From 156e56230c1819245c0d9165629f8077b6417167 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 May 2018 20:23:43 +0200 Subject: code cleaning (using new MS coding style) --- plugins/Weather/src/weather_contacts.cpp | 6 ++++-- plugins/Weather/src/weather_ini.cpp | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'plugins/Weather') diff --git a/plugins/Weather/src/weather_contacts.cpp b/plugins/Weather/src/weather_contacts.cpp index 2348e9b69b..c770ebd5d0 100644 --- a/plugins/Weather/src/weather_contacts.cpp +++ b/plugins/Weather/src/weather_contacts.cpp @@ -260,7 +260,8 @@ static INT_PTR CALLBACK DlgProcChange(HWND hwndDlg, UINT msg, WPARAM wParam, LPA EnableWindow(GetDlgItem(hwndDlg, IDC_BROWSE), (BYTE)IsDlgButtonChecked(hwndDlg, IDC_External)); if (!(BYTE)IsDlgButtonChecked(hwndDlg, IDC_External)) return TRUE; - // fall through + __fallthrough; + case IDC_BROWSE: // browse for the external log file GetDlgItemText(hwndDlg, IDC_LOG, str, _countof(str)); @@ -374,7 +375,8 @@ static INT_PTR CALLBACK DlgProcChange(HWND hwndDlg, UINT msg, WPARAM wParam, LPA // re-enable the protocol and update the data for the station db_set_s(hContact, WEATHERPROTONAME, "LastCondition", "None"); UpdateSingleStation(hContact, 0); - // fall through + __fallthrough; + case IDCANCEL: // remove the dialog from window list and close it DestroyWindow(hwndDlg); diff --git a/plugins/Weather/src/weather_ini.cpp b/plugins/Weather/src/weather_ini.cpp index 994f80ce11..5e1caf5cef 100644 --- a/plugins/Weather/src/weather_ini.cpp +++ b/plugins/Weather/src/weather_ini.cpp @@ -199,7 +199,8 @@ static INT_PTR CALLBACK DlgProcSetup(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR case IDC_STEP4: WeatherAdd(0, 0); - // fall through + __fallthrough; + case IDCANCEL: // close the info window DestroyWindow(hwndDlg); -- cgit v1.2.3