Skip to content

Commit

Permalink
remove redundant pointer check
Browse files Browse the repository at this point in the history
  • Loading branch information
ludviggunne committed Sep 24, 2024
1 parent 4514906 commit 0bb6ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/checkunusedfunctions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ void CheckUnusedFunctions::parseTokens(const Tokenizer &tokenizer, const Setting
funcname = tok->next();
while (Token::Match(funcname, "%name% :: %name%"))
funcname = funcname->tokAt(2);
} else if (Token::Match(tok, "& %name%") && tok->scope() && tok->scope()->isLocal()) {
} else if (Token::Match(tok, "& %name%") && tok->scope()->isLocal()) {
funcname = tok->next();
while (Token::Match(funcname, "%name% :: %name%"))
funcname = funcname->tokAt(2);
Expand Down

0 comments on commit 0bb6ded

Please sign in to comment.