]> git.tdb.fi Git - builder.git/blobdiff - source/tool.h
Inline simple constructors
[builder.git] / source / tool.h
index e1bef2d8652031324338de553b5c46689213a194..6fa4fb5c127090bf81a0ded5574c14bd2aa0bc69 100644 (file)
@@ -43,10 +43,10 @@ protected:
        bool prepared = false;
        std::vector<std::string> 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;