Task: Improved method signature

This commit is contained in:
Paul Beckingham 2016-12-31 16:33:39 -05:00
parent 04043d267f
commit 8c0bfb030a
8 changed files with 40 additions and 48 deletions

View file

@ -381,14 +381,12 @@ void feedback_unblocked (const Task& task)
if (context.verbose ("affected"))
{
// Get a list of tasks that depended on this task.
std::vector <Task> blocked;
dependencyGetBlocked (task, blocked);
auto blocked = dependencyGetBlocked (task);
// Scan all the tasks that were blocked by this task
for (auto& i : blocked)
{
std::vector <Task> blocking;
dependencyGetBlocking (i, blocking);
auto blocking = dependencyGetBlocking (i);
if (blocking.size () == 0)
{
if (i.id)