ENH: Simplify construction of cmFileInstaller
This cleans up the cmFileInstaller constructor signature.
This commit is contained in:
parent
77f85db5d7
commit
8d685184f3
|
@ -909,8 +909,9 @@ struct cmFileInstaller
|
||||||
bool always);
|
bool always);
|
||||||
|
|
||||||
// All instances need the file command and makefile using them.
|
// All instances need the file command and makefile using them.
|
||||||
cmFileInstaller(cmFileCommand* fc, cmMakefile* mf):
|
cmFileInstaller(cmFileCommand* command):
|
||||||
FileCommand(fc), Makefile(mf), DestDirLength(0), MatchlessFiles(true)
|
FileCommand(command), Makefile(command->GetMakefile()),
|
||||||
|
DestDirLength(0), MatchlessFiles(true)
|
||||||
{
|
{
|
||||||
// Get the current manifest.
|
// Get the current manifest.
|
||||||
this->Manifest =
|
this->Manifest =
|
||||||
|
@ -1725,7 +1726,7 @@ bool cmFileCommand::HandleInstallCommand(std::vector<std::string> const& args)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Construct a file installer object.
|
// Construct a file installer object.
|
||||||
cmFileInstaller installer(this, this->Makefile);
|
cmFileInstaller installer(this);
|
||||||
|
|
||||||
std::string rename = "";
|
std::string rename = "";
|
||||||
std::string destination = "";
|
std::string destination = "";
|
||||||
|
|
Loading…
Reference in New Issue