]> git.tdb.fi Git - builder.git/blobdiff - source/csourcefile.cpp
Make Target::add_depend take a reference since null is not allowed
[builder.git] / source / csourcefile.cpp
index e2b029a0d1f7080d29a409f7962356db6799c966..b0346e46cd01d94dc5d57ef01daf2823f8bb37cb 100644 (file)
@@ -57,6 +57,6 @@ void CSourceFile::find_depends()
        {
                Target *hdr = builder.get_vfs().find_header(i->substr(1), ((*i)[0]=='"' ? local_incpath : incpath));
                if(hdr)
-                       add_depend(hdr);
+                       add_depend(*hdr);
        }
 }