Replace tok->next()->next()->next()->next() call to tok->tokAt(4).

Done by command:
git grep -l 'next()->next()->next()->next(),' | xargs sed -i 's|next()->next()->next()->next()|tokAt(4)|'

No functional change.
This commit is contained in:
Slava Semushin 2009-06-14 13:09:02 +07:00
parent 4dd3835617
commit b3841dda96
1 changed files with 1 additions and 1 deletions

View File

@ -1152,7 +1152,7 @@ void CheckMemoryLeakInFunction::simplifycode(Token *tok, bool &all)
// erase "loop {"
Token::eraseTokens(tok2, tok2->tokAt(3));
// erase "if break|continue ; }"
tok2 = tok2->next()->next()->next()->next();
tok2 = tok2->tokAt(4);
Token::eraseTokens(tok2, tok2->tokAt(5));
done = false;
}