Skip to content

Commit

Permalink
Use fallthrough attribute instead of comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lballabio committed Jan 17, 2025
1 parent 806a630 commit 7001df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ql/time/schedule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace QuantLib {
QL_REQUIRE(!*endOfMonth_,
"endOfMonth convention incompatible with " << *rule_ <<
" date generation rule");
// fall through
[[fallthrough]];
case DateGeneration::Forward:

if (*rule_ == DateGeneration::CDS || *rule_ == DateGeneration::CDS2015) {
Expand Down

0 comments on commit 7001df1

Please sign in to comment.