]> git.tdb.fi Git - builder.git/blobdiff - source/copy.cpp
Rename Install to InstalledFile
[builder.git] / source / copy.cpp
index b5ac403c4d4eb72e42567122bb656d576287bb5a..b756e0c037412012a828075735a7b6fb8eb3b679 100644 (file)
@@ -7,7 +7,7 @@
 #include <msp/io/print.h>
 #include "builder.h"
 #include "copy.h"
-#include "install.h"
+#include "installedfile.h"
 
 using namespace std;
 using namespace Msp;
@@ -20,20 +20,20 @@ Target *Copy::create_target(const list<Target *> &sources, const string &arg) co
 {
        FileTarget &file_tgt = dynamic_cast<FileTarget &>(*sources.front());
        const SourcePackage &pkg = dynamic_cast<const SourcePackage &>(*file_tgt.get_package());
-       Install *inst = new Install(builder, pkg, file_tgt, arg);
+       InstalledFile *inst = new InstalledFile(builder, pkg, file_tgt, arg);
        inst->set_tool(*this);
        return inst;
 }
 
 Task *Copy::run(const Target &target) const
 {
-       const Install &install = dynamic_cast<const Install &>(target);
+       const InstalledFile &install = dynamic_cast<const InstalledFile &>(target);
        Worker *worker = new Worker(install);
        return new InternalTask(worker);
 }
 
 
-Copy::Worker::Worker(const Install &t):
+Copy::Worker::Worker(const InstalledFile &t):
        target(t)
 {
        launch();