diff options
author | Brad King <brad.king@kitware.com> | 2009-04-29 12:46:21 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-04-29 12:46:21 (GMT) |
commit | 8d685184f341e66e26284165c14ccfc045a074d8 (patch) | |
tree | 55e46f0b8f8a476665ca377db9db473559b63d76 /Source/cmFileCommand.cxx | |
parent | 77f85db5d722d623184fb623c407d454e4ef70d9 (diff) | |
download | CMake-8d685184f341e66e26284165c14ccfc045a074d8.zip CMake-8d685184f341e66e26284165c14ccfc045a074d8.tar.gz CMake-8d685184f341e66e26284165c14ccfc045a074d8.tar.bz2 |
ENH: Simplify construction of cmFileInstaller
This cleans up the cmFileInstaller constructor signature.
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index f2565da..d988f30 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -909,8 +909,9 @@ struct cmFileInstaller bool always); // All instances need the file command and makefile using them. - cmFileInstaller(cmFileCommand* fc, cmMakefile* mf): - FileCommand(fc), Makefile(mf), DestDirLength(0), MatchlessFiles(true) + cmFileInstaller(cmFileCommand* command): + FileCommand(command), Makefile(command->GetMakefile()), + DestDirLength(0), MatchlessFiles(true) { // Get the current manifest. this->Manifest = @@ -1725,7 +1726,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args) } // Construct a file installer object. - cmFileInstaller installer(this, this->Makefile); + cmFileInstaller installer(this); std::string rename = ""; std::string destination = ""; |