audita NOLINT/cppcheck-suppress: refactor i justifica residuals

This commit is contained in:
2026-05-17 09:18:08 +02:00
parent 91add6f2fe
commit e887b77dcb
7 changed files with 292 additions and 383 deletions
+2 -2
View File
@@ -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_) {