C++11 fallthrough (2/2)

This commit is contained in:
Robin Gareus 2023-05-19 05:34:10 +02:00
parent f02e5d3a9f
commit 157ccbbdb5
11 changed files with 32 additions and 33 deletions

View file

@ -190,8 +190,8 @@ ArdourMarker::ArdourMarker (PublicEditor& ed, ArdourCanvas::Item& parent, std::s
*/
switch (_type) {
case Mark: /* fallthough */
case RegionCue: /* fallthough */
case Mark: [[fallthrough]];
case RegionCue: [[fallthrough]];
case BBTPosition:
points = new ArdourCanvas::Points ();
@ -297,13 +297,13 @@ ArdourMarker::ArdourMarker (PublicEditor& ed, ArdourCanvas::Item& parent, std::s
switch (_type) {
case RegionCue:
/* fallthrough */
[[fallthrough]];
case Meter:
/* fallthrough */
[[fallthrough]];
case Tempo:
/* fallthrough */
[[fallthrough]];
case SelectionStart:
/* fallthrough */
[[fallthrough]];
case SelectionEnd:
_name_flag = 0;
break;
@ -325,7 +325,7 @@ ArdourMarker::ArdourMarker (PublicEditor& ed, ArdourCanvas::Item& parent, std::s
switch (_type) {
case SelectionStart:
/* fallthrough */
[[fallthrough]];
case SelectionEnd:
_pcue->hide();
_pmark->show();