X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fheader.h;fp=source%2Fheader.h;h=a2b7c7da2e912002991ef54a4f41723f46a6ed70;hb=242c55b17e6608b29a77ca17a5b677e202a3ca90;hp=ce1f62588a5918a833f4603328eface470c01feb;hpb=77461a8c0e2b5686b04cf15f3a9333b215813992;p=builder.git diff --git a/source/header.h b/source/header.h index ce1f625..a2b7c7d 100644 --- a/source/header.h +++ b/source/header.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2006-2007, 2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -16,8 +16,8 @@ Represents a header file. Mainly exists to give extra information to the user. class Header: public SourceFile { public: - Header(Builder &b, const Component *c, const std::string &f): SourceFile(b,c,f) { } - const char *get_type() const { return "Header"; } + Header(Builder &b, const Component *c, const std::string &f): SourceFile(b, c, f) { } + virtual const char *get_type() const { return "Header"; } }; /** @@ -26,9 +26,9 @@ 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) { } - const char *get_type() const { return "SystemHeader"; } - void find_depends() { deps_ready=true; } + SystemHeader(Builder &b, const std::string &f): Header(b, 0, f) { } + virtual const char *get_type() const { return "SystemHeader"; } + virtual void find_depends() { deps_ready=true; } }; #endif