[clang-tidy] Use new range based loops
Found with modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Paul Beckingham
parent
6ce2a129dd
commit
a468537c1b
@@ -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 & i : deps_current)
|
||||
{
|
||||
if (Context::getContext ().tdb2.get (deps_current[i], current))
|
||||
if (Context::getContext ().tdb2.get (i, current))
|
||||
{
|
||||
auto current_uuid = current.get ("uuid");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user