Tokenizer::setVarId(): use Token::link() instead of loop.

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

View File

@ -1007,8 +1007,7 @@ void Tokenizer::setVarId()
if (Token::Match(tok2, funcpattern.c_str()))
{
// Goto the end paranthesis..
while (tok2 && tok2->str() != ")")
tok2 = tok2->next();
tok2 = tok2->tokAt(3)->link();
if (!tok2)
break;