]> git.tdb.fi Git - builder.git/blobdiff - source/csourcefile.cpp
Refactor FileTarget and SourceFile constructors
[builder.git] / source / csourcefile.cpp
index 7a26bb5ff4c503b0072eb9ed5bde9e3e25d15bdb..824027890fa940c36c0bcd47de0f3bdc1adcbcfa 100644 (file)
@@ -11,11 +11,11 @@ using namespace std;
 using namespace Msp;
 
 CSourceFile::CSourceFile(Builder &b, const FS::Path &p):
-       SourceFile(b, 0, p)
+       SourceFile(b, p)
 { }
 
 CSourceFile::CSourceFile(Builder &b, const Component &c, const FS::Path &p):
-       SourceFile(b, &c, p)
+       SourceFile(b, c, p)
 {
        string ext = FS::extpart(FS::basename(path));
        if(ext==".h" || ext==".H" || ext==".hpp")