Skip to content

Commit

Permalink
Merge pull request #93 from rogy-AquaLab/clang-tidy-led-2
Browse files Browse the repository at this point in the history
thisポインタを明示
  • Loading branch information
H1rono authored Apr 1, 2024
2 parents ee82e55 + e612b87 commit b050a25
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/schneider_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ void Schneider::rotate() {

void Schneider::led(int num) {
// 3つの連続した明示的なブランチがあるといわれたがそんなことない
// NOLINTBEGIN
// NOLINTBEGIN(bugprone-branch-clone)
switch (num) {
case 1: led1 = !led1; break;
case 2: led2 = !led2; break;
case 3: led3 = !led3; break;
case 1: this->led1 = !this->led1; break;
case 2: this->led2 = !this->led2; break;
case 3: this->led3 = !this->led3; break;
default: break;
}
// NOLINTEND
// NOLINTEND(bugprone-branch-clone)
}

} // namespace omniboat

0 comments on commit b050a25

Please sign in to comment.