Token::replace: Little style change.

This commit is contained in:
Edoardo Prezioso 2012-01-22 00:02:55 +01:00
parent 3a2ba173ac
commit 6cac600d37
1 changed files with 2 additions and 3 deletions

View File

@ -194,10 +194,9 @@ void Token::replace(Token *replaceThis, Token *start, Token *end)
*(end->tokensBack) = end;
}
// Update _progressValue
for (Token *tok = start; tok != end->next(); tok = tok->next()) {
// Update _progressValue, fileIndex and linenr
for (Token *tok = start; tok != end->next(); tok = tok->next())
tok->_progressValue = replaceThis->_progressValue;
}
// Delete old token, which is replaced
delete replaceThis;