diff --git a/lib/executionpath.cpp b/lib/executionpath.cpp index d8a4300e1..120a29d40 100644 --- a/lib/executionpath.cpp +++ b/lib/executionpath.cpp @@ -471,7 +471,7 @@ void checkExecutionPaths(const SymbolDatabase *symbolDatabase, ExecutionPath *c) c->end(checks, i->classEnd); // Cleanup - while (checks.size() > 1) { + while (!checks.empty()) { delete checks.back(); checks.pop_back(); }