Token::replace: Little style change.
This commit is contained in:
parent
3a2ba173ac
commit
6cac600d37
|
@ -194,10 +194,9 @@ void Token::replace(Token *replaceThis, Token *start, Token *end)
|
||||||
*(end->tokensBack) = end;
|
*(end->tokensBack) = end;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update _progressValue
|
// Update _progressValue, fileIndex and linenr
|
||||||
for (Token *tok = start; tok != end->next(); tok = tok->next()) {
|
for (Token *tok = start; tok != end->next(); tok = tok->next())
|
||||||
tok->_progressValue = replaceThis->_progressValue;
|
tok->_progressValue = replaceThis->_progressValue;
|
||||||
}
|
|
||||||
|
|
||||||
// Delete old token, which is replaced
|
// Delete old token, which is replaced
|
||||||
delete replaceThis;
|
delete replaceThis;
|
||||||
|
|
Loading…
Reference in New Issue