]> git.tdb.fi Git - builder.git/blobdiff - source/file.h
Mark overridden virtual functions as such
[builder.git] / source / file.h
index 0e92b72f13ffb934818d8aaba1bf0039ffc984ea..42d73b8c8366f29d056ff019c2b9c219527230b9 100644 (file)
@@ -4,15 +4,15 @@
 #include "filetarget.h"
 
 /**
-Just an arbitary file.  No special meaning attached.
+Just an arbitrary file.  No special meaning attached.
 */
 class File: public FileTarget
 {
 public:
-       File(Builder &b, const Msp::FS::Path &t): FileTarget(b, 0, t) { }
-       File(Builder &b, SourcePackage &p, const Msp::FS::Path &t): FileTarget(b, &p, t) { }
+       File(Builder &b, const Msp::FS::Path &t): FileTarget(b, t) { }
+       File(Builder &b, const SourcePackage &p, const Msp::FS::Path &t): FileTarget(b, p, t) { }
 
-       virtual const char *get_type() const { return "File"; }
+       const char *get_type() const override { return "File"; }
 };
 
 #endif