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);
|
||||
if (checks.empty())
|
||||
return;
|
||||
|
|
|
@ -655,7 +655,7 @@ static void removeValues(std::list<ValueFlow::Value> &values, const std::list<Va
|
|||
if (found)
|
||||
values.erase(it++);
|
||||
else
|
||||
it++;
|
||||
++it;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue