X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftool.h;h=6fa4fb5c127090bf81a0ded5574c14bd2aa0bc69;hb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;hp=e1bef2d8652031324338de553b5c46689213a194;hpb=d1f9551e05c9d341149eb490e05b1465d3d6b711;p=builder.git diff --git a/source/tool.h b/source/tool.h index e1bef2d..6fa4fb5 100644 --- a/source/tool.h +++ b/source/tool.h @@ -43,10 +43,10 @@ protected: bool prepared = false; std::vector problems; - Tool(Builder &, const std::string &); - Tool(Builder &, const Architecture &, const std::string &); + Tool(Builder &b, const std::string &t): Tool(b, 0, t) { } + Tool(Builder &b, const Architecture &a, const std::string &t): Tool(b, &a, t) { } private: - Tool(Builder &, const Architecture *, const std::string &); + Tool(Builder &b, const Architecture *a, const std::string &t): builder(b), architecture(a), tag(t) { } public: virtual ~Tool() { } @@ -133,7 +133,7 @@ class SubTool: public Tool protected: Tool &parent; - SubTool(Tool &); + SubTool(Tool &t): Tool(t), parent(t) { } public: Target *create_source(const Component &, const Msp::FS::Path &) const override;