src/checkautovariables.cpp(autoVariables): simplify condition.

No functional change.
This commit is contained in:
Slava Semushin 2009-07-27 15:39:13 +07:00
parent 5ff88d7e47
commit 1ac496e707
1 changed files with 1 additions and 3 deletions

View File

@ -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();