]> git.tdb.fi Git - builder.git/blobdiff - source/copy.h
Convert all list containers to vectors
[builder.git] / source / copy.h
index 6150fadfefa660c287d8f2a850da098489f51893..5f20c161126752d0cf34194c857baa8306b53bab 100644 (file)
@@ -6,10 +6,10 @@
 #include "internaltask.h"
 #include "tool.h"
 
-class Install;
+class InstalledFile;
 
 /**
-Copies a file to another place.  Used by the Install target.
+Copies a file to another place.  Used by the InstalledFile target.
 */
 class Copy: public Tool
 {
@@ -20,19 +20,19 @@ private:
        class Worker: public InternalTask::Worker
        {
        private:
-               const Install ⌖
+               const InstalledFile ⌖
 
        public:
-               Worker(const Install &);
+               Worker(const InstalledFile &);
        private:
-               virtual void main();
+               void main() override;
        };
 
 public:
        Copy(Builder &);
 
-       virtual Target *create_target(const std::list<Target *> &, const std::string &) const;
-       virtual Task *run(const Target &) const;
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+       Task *run(const Target &) const override;
 };
 
 #endif