Skip to content

Commit b3e4abd

Browse files
committed
Fixed Cppcheck warnings
1 parent 05617d7 commit b3e4abd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/executionpath.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ void ExecutionPath::checkScope(const Token *tok, std::list<ExecutionPath *> &che
450450
}
451451

452452

453-
{
453+
if (tok) {
454454
tok = check->parse(*tok, checks);
455455
if (checks.empty())
456456
return;

lib/valueflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,7 @@ static void removeValues(std::list<ValueFlow::Value> &values, const std::list<Va
655655
if (found)
656656
values.erase(it++);
657657
else
658-
it++;
658+
++it;
659659
}
660660
}
661661

0 commit comments

Comments
 (0)