]> git.tdb.fi Git - builder.git/blobdiff - source/filetarget.cpp
Move the Component reference to Target and make it a pointer
[builder.git] / source / filetarget.cpp
index decb4bf793d68015066e1dede84f044e340ae836..2a60c2986bac2ec89f1454995f89283fe5d973da 100644 (file)
@@ -10,10 +10,12 @@ using namespace std;
 using namespace Msp;
 
 FileTarget::FileTarget(Builder &b, const Package *p, const FS::Path &a):
-       Target(b, p, make_name(p, a)),
+       Target(b, make_name(p, a)),
        path(a),
        size(0)
 {
+       package = p;
+
        builder.get_vfs().register_path(path, this);
 
        if(FS::Stat st = FS::lstat(path))