mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
clang-tidy: loop conversion
Found with modernize-loop-convert Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
15f0ab87e0
commit
ab7f5b0b51
7 changed files with 36 additions and 38 deletions
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue