From b74bd9e24e1205b7449404fd05172664b211d82c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 29 May 2022 14:55:51 +0200 Subject: Make all task lists std::set instead of std::list to make sure to not contain duplicates. --- src/task.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/task.h') diff --git a/src/task.h b/src/task.h index 4cbd126..47f4d1b 100644 --- a/src/task.h +++ b/src/task.h @@ -6,7 +6,7 @@ #include #include #include -#include +#include #include #include "libctor.h" @@ -25,7 +25,7 @@ class Task public: Task(const BuildConfiguration& config); - int registerDepTasks(const std::list>& tasks); + int registerDepTasks(const std::set>& tasks); virtual std::string name() const; bool dirty(); @@ -52,7 +52,7 @@ public: OutputSystem outputSystem() const; std::string compiler() const; - std::list> getDependsTasks(); + std::set> getDependsTasks(); virtual std::string source() const { return {}; } @@ -62,7 +62,7 @@ protected: virtual bool dirtyInner() { return false; } std::vector dependsStr; - std::list> dependsTasks; + std::set> dependsTasks; const BuildConfiguration& config; TargetType target_type{TargetType::Auto}; Language source_language{Language::Auto}; -- cgit v1.2.3