clang-tidy: loop conversion

Found with modernize-loop-convert

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-04-22 21:48:50 -07:00 committed by Tomas Babej
parent 15f0ab87e0
commit ab7f5b0b51
7 changed files with 36 additions and 38 deletions

View file

@ -91,9 +91,9 @@ bool dependencyIsCircular (const Task& task)
// This is a basic depth first search that always terminates given the
// fact that we do not visit any task twice
for (unsigned int i = 0; i < deps_current.size (); i++)
for (const auto& dep : deps_current)
{
if (Context::getContext ().tdb2.get (deps_current[i], current))
if (Context::getContext ().tdb2.get (dep, current))
{
auto current_uuid = current.get ("uuid");