]> git.tdb.fi Git - builder.git/blobdiff - source/binary.cpp
Make Target::add_depend take a reference since null is not allowed
[builder.git] / source / binary.cpp
index 2d0a409c5f2c53835fd38f6457e8fcccabb37ee6..7a3e7a5b6a34e0a58694323fd203f87c42bfd7e0 100644 (file)
@@ -20,7 +20,7 @@ Binary::Binary(Builder &b, const Component &c, const string &p, const list<Objec
 {
        component = &c;
        for(list<ObjectFile *>::const_iterator i=objs.begin(); i!=objs.end(); ++i)
-               add_depend(*i);
+               add_depend(**i);
 }
 
 void Binary::find_depends()
@@ -68,6 +68,6 @@ void Binary::find_depends()
                for(list<Target *>::iterator j=i; (last && j!=dep_libs.end()); ++j)
                        last = (j==i || *j!=*i);
                if(last)
-                       add_depend(*i);
+                       add_depend(**i);
        }
 }