X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fvirtualtarget.h;h=5151826df9a7bda482b9c1a5498828c09516d810;hb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;hp=252c68f3cb3aa7ebd6f187f349954463a22399f4;hpb=4629d189a531c962cf15a511df787f30c3adcb02;p=builder.git diff --git a/source/virtualtarget.h b/source/virtualtarget.h index 252c68f..5151826 100644 --- a/source/virtualtarget.h +++ b/source/virtualtarget.h @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of builder -Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #ifndef VIRTUALTARGET_H_ #define VIRTUALTARGET_H_ @@ -16,11 +9,14 @@ A target that is not associated with any file. class VirtualTarget: public Target { public: - VirtualTarget(Builder &b, const std::string &n): Target(b, 0, n) { } - virtual const char *get_type() const { return "VirtualTarget"; } + VirtualTarget(Builder &b, const std::string &n): Target(b, n) { } + + const char *get_type() const override { return "VirtualTarget"; } private: - virtual void check_rebuild(); - virtual Action *create_action() { return 0; } + void check_rebuild() override; + +public: + Task *build() override; }; #endif