From 50493a920f444d3bba62d4a034609aea8ab4f7fe Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 7 Sep 2021 19:24:30 +0200 Subject: [PATCH] Remove "fall through" comments from the samples Use wxFALLTHROUGH when appropriate and just remove the useless "fall through" comment from a "default" branch. No real changes. --- samples/grid/griddemo.cpp | 2 +- samples/widgets/slider.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/grid/griddemo.cpp b/samples/grid/griddemo.cpp index 8c41f27e4b..ab25e4e7cb 100644 --- a/samples/grid/griddemo.cpp +++ b/samples/grid/griddemo.cpp @@ -2037,7 +2037,7 @@ wxString BugsGridTable::GetTypeName(int WXUNUSED(row), int col) return wxGRID_VALUE_NUMBER; case Col_Severity: - // fall through (TODO should be a list) + wxFALLTHROUGH; case Col_Summary: return wxString::Format("%s:80", wxGRID_VALUE_STRING); diff --git a/samples/widgets/slider.cpp b/samples/widgets/slider.cpp index fcfeb45ff3..bd30df106a 100644 --- a/samples/widgets/slider.cpp +++ b/samples/widgets/slider.cpp @@ -471,7 +471,6 @@ void SliderWidgetsPage::CreateSlider() default: wxFAIL_MSG("unexpected radiobox selection"); - // fall through } if ( m_chkBothSides->GetValue() )