diff options
Diffstat (limited to 'src/task.cc')
-rw-r--r-- | src/task.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/task.cc b/src/task.cc index 962a02b..4cdfa5e 100644 --- a/src/task.cc +++ b/src/task.cc @@ -3,17 +3,15 @@ #include <unistd.h> #include <iostream> -Task::Task(const BuildConfiguration& config, - const std::vector<std::string>& depends) - : dependsStr(depends) - , config(config) +Task::Task(const BuildConfiguration& config) + : config(config) , output_system(config.system) { } int Task::registerDepTasks(const std::list<std::shared_ptr<Task>>& tasks) { - for(auto const& depStr : dependsStr) + for(const auto& depStr : depends()) { bool found{false}; for(const auto& task : tasks) |