audita NOLINT/cppcheck-suppress: refactor i justifica residuals
This commit is contained in:
@@ -870,13 +870,13 @@ void Title::iterate() {
|
||||
demo_game_->iterate();
|
||||
|
||||
if (demo_game_->hasFinished()) {
|
||||
// cppcheck-suppress knownConditionTrueFalse
|
||||
// cppcheck-suppress knownConditionTrueFalse ; fals positiu: iterate() pot escriure section_->name=SECTION_PROG_QUIT (Alt+F4), cppcheck no creua la crida
|
||||
const bool WAS_QUIT = (section_->name == SECTION_PROG_QUIT);
|
||||
delete demo_game_;
|
||||
demo_game_ = nullptr;
|
||||
demo_game_active_ = false;
|
||||
|
||||
// cppcheck-suppress knownConditionTrueFalse
|
||||
// cppcheck-suppress knownConditionTrueFalse ; fals positiu: WAS_QUIT depèn de iterate() que pot mutar section_->name
|
||||
if (WAS_QUIT) {
|
||||
section_->name = SECTION_PROG_QUIT;
|
||||
} else if (demo_then_instructions_) {
|
||||
|
||||
Reference in New Issue
Block a user