Skip to content

Commit

Permalink
Fix cppcheck issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pfultz2 committed May 22, 2024
1 parent 8364bfe commit 197eb4a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/symboldatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,8 @@ void SymbolDatabase::createSymbolDatabaseFindAllScopes()
scopeList.emplace_back(this, tok, scope, Scope::eUnconditional, tok);
scope->nestedList.push_back(&scopeList.back());
scope = &scopeList.back();
} else if (scope->isExecutable()) {
endInitList.emplace(tok->link(), scope);
} else {
tok = tok->link();
endInitList.emplace(tok->link(), scope);
}
} else if (Token::Match(tok, "extern %type%")) {
const Token * ftok = tok->next();
Expand Down

0 comments on commit 197eb4a

Please sign in to comment.