src/checkautovariables.cpp(autoVariables): simplify condition.
No functional change.
This commit is contained in:
parent
5ff88d7e47
commit
1ac496e707
|
@ -141,9 +141,7 @@ void CheckAutoVariables::autoVariables()
|
|||
for (const Token *tok = _tokenizer->tokens(); tok; tok = tok->next())
|
||||
{
|
||||
|
||||
if (Token::Match(tok, "%type% %var% (") ||
|
||||
Token::Match(tok, "%type% * %var% (") ||
|
||||
Token::Match(tok, "%type% :: %var% ("))
|
||||
if (Token::Match(tok, "%type% *|::| %var% ("))
|
||||
{
|
||||
begin_function = true;
|
||||
fp_list.clear();
|
||||
|
|
Loading…
Reference in New Issue