X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=2824e2a806589c4ce4c948b90dcf37a89fe18c36;hb=82c7d6187fdaeaa1b9cfbd6637d9b047a78f17ec;hp=e7150c205deb0d1b274b63da6a0194abd3161299;hpb=3f0f7216789aeedba206308c452623351e406e75;p=builder.git diff --git a/source/target.h b/source/target.h index e7150c2..2824e2a 100644 --- a/source/target.h +++ b/source/target.h @@ -1,10 +1,10 @@ #ifndef TARGET_H_ #define TARGET_H_ -#include #include #include #include +#include #include #include @@ -27,7 +27,7 @@ dependencies can be used by other targets further down the chain. class Target { public: - typedef std::list Dependencies; + using Dependencies = std::vector; protected: enum State @@ -53,7 +53,7 @@ protected: Tool *tool; State state; std::string rebuild_reason; - std::list problems; + std::vector problems; Dependencies depends; Dependencies trans_depends; @@ -141,7 +141,7 @@ protected: public: bool is_broken() const { return state==BROKEN; } - const std::list &get_problems() const { return problems; } + const std::vector &get_problems() const { return problems; } /** Prepares the target by finding dependencies, recursively preparing them and then checking whether rebuilding is needed. */