]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Make Target::add_depend take a reference since null is not allowed
[builder.git] / source / target.h
index f4a4efc9a262ee55cf145f56fe5a4fc1d7602d99..f9d8b24b4ef25268e28ff8e2637c4e0421e28ecf 100644 (file)
@@ -91,7 +91,7 @@ public:
        /** Adds a dependency for the target.  Order is preseved and is important
        for some target types.  It is an error to create dependency cycles, although
        this won't be detected until the targets are prepared. */
-       void add_depend(Target *);
+       void add_depend(Target &);
 
        /// Returns the dependencies of the target, in the order they were added.
        const Dependencies &get_depends() const { return depends; }