]> git.tdb.fi Git - builder.git/blobdiff - source/filetarget.h
Binary packages can't have files, so avoid some dynamic casts
[builder.git] / source / filetarget.h
index 32092d0db05efd1bc428489684597db474215c9e..7d42c91c06e67b7fbe2a97e4bf9b3542f5be810d 100644 (file)
@@ -15,7 +15,7 @@ protected:
        Msp::Time::TimeStamp mtime;
        unsigned size;
 
-       FileTarget(Builder &, const Package *, const Msp::FS::Path &);
+       FileTarget(Builder &, const SourcePackage *, const Msp::FS::Path &);
 public:
        const Msp::FS::Path &get_path() const { return path; }
        const Msp::Time::TimeStamp &get_mtime() const { return mtime; }
@@ -29,7 +29,7 @@ public:
 protected:
        virtual void check_rebuild();
 private:
-       static std::string generate_name(const Package *, const Msp::FS::Path &);
+       static std::string generate_name(const SourcePackage *, const Msp::FS::Path &);
 };
 
 #endif