Tokenizer::setVarId(): simplify condition.

No functional change.
This commit is contained in:
Slava Semushin 2009-08-30 03:12:08 +07:00
parent fd94bb0cea
commit 00113eea92
1 changed files with 1 additions and 2 deletions

View File

@ -932,8 +932,7 @@ void Tokenizer::setVarId()
// str.clear is a variable
// str.clear() is a member function
if (tok->varId() != 0 &&
Token::Match(tok->next(), ". %var%") &&
!Token::Match(tok->tokAt(3), "(") &&
Token::Match(tok->next(), ". %var% !!(") &&
tok->tokAt(2)->varId() == 0)
{
++_varId;