X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fheader.h;h=f52c13b53c0baa3add28731fe007f5c3297ac33f;hb=1fdef3ec9d6291af8a467ea0e2c90e7f19141ae2;hp=a2b7c7da2e912002991ef54a4f41723f46a6ed70;hpb=5006279d7b92e578ecfa8a04186f675c6b9f1eea;p=builder.git diff --git a/source/header.h b/source/header.h index a2b7c7d..f52c13b 100644 --- a/source/header.h +++ b/source/header.h @@ -15,8 +15,10 @@ Represents a header file. Mainly exists to give extra information to the user. */ class Header: public SourceFile { +protected: + Header(Builder &b, const std::string &f): SourceFile(b, f) { } public: - Header(Builder &b, const Component *c, const std::string &f): SourceFile(b, c, f) { } + Header(Builder &b, const Component &c, const std::string &f): SourceFile(b, c, f) { } virtual const char *get_type() const { return "Header"; } }; @@ -26,9 +28,8 @@ A header file that doesn't belong to any known package. class SystemHeader: public Header { public: - SystemHeader(Builder &b, const std::string &f): Header(b, 0, f) { } + SystemHeader(Builder &b, const std::string &f): Header(b, f) { } virtual const char *get_type() const { return "SystemHeader"; } - virtual void find_depends() { deps_ready=true; } }; #endif