Fixed Cppcheck warnings
This commit is contained in:
parent
05617d7285
commit
b3e4abd82a
|
@ -450,7 +450,7 @@ void ExecutionPath::checkScope(const Token *tok, std::list<ExecutionPath *> &che
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
{
|
if (tok) {
|
||||||
tok = check->parse(*tok, checks);
|
tok = check->parse(*tok, checks);
|
||||||
if (checks.empty())
|
if (checks.empty())
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -655,7 +655,7 @@ static void removeValues(std::list<ValueFlow::Value> &values, const std::list<Va
|
||||||
if (found)
|
if (found)
|
||||||
values.erase(it++);
|
values.erase(it++);
|
||||||
else
|
else
|
||||||
it++;
|
++it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue