Tokenizer::setVarId(): use Token::link() instead of loop.
No functional change.
This commit is contained in:
parent
00113eea92
commit
6bb6cbadc2
|
@ -1007,8 +1007,7 @@ void Tokenizer::setVarId()
|
||||||
if (Token::Match(tok2, funcpattern.c_str()))
|
if (Token::Match(tok2, funcpattern.c_str()))
|
||||||
{
|
{
|
||||||
// Goto the end paranthesis..
|
// Goto the end paranthesis..
|
||||||
while (tok2 && tok2->str() != ")")
|
tok2 = tok2->tokAt(3)->link();
|
||||||
tok2 = tok2->next();
|
|
||||||
if (!tok2)
|
if (!tok2)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue