Fixed Cppcheck warnings

This commit is contained in:
Daniel Marjamäki 2014-09-04 18:08:56 +02:00
parent 05617d7285
commit b3e4abd82a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -655,7 +655,7 @@ static void removeValues(std::list<ValueFlow::Value> &values, const std::list<Va
if (found)
values.erase(it++);
else
it++;
++it;
}
}