improve constness
This commit is contained in:
parent
f847631cdb
commit
4827751b04
|
@ -352,7 +352,7 @@ void CheckLeakAutoVar::checkScope(const Token * const startToken,
|
|||
tokens.push(tok3->astOperand2());
|
||||
continue;
|
||||
} else if (tok3->str() == "(" && Token::Match(tok3->previous(), "%name%")) {
|
||||
std::vector<const Token *> params = getArguments(tok3->previous());
|
||||
const std::vector<const Token *> params = getArguments(tok3->previous());
|
||||
for (unsigned int i = 0; i < params.size(); ++i) {
|
||||
const Token *par = params[i];
|
||||
if (!par->isComparisonOp())
|
||||
|
|
Loading…
Reference in New Issue