Commit 501c237a authored by Stephen Kelly's avatar Stephen Kelly
Browse files

install: Use an intermediate filesVector variable.

Reduce noise.
parent 36c275d8
......@@ -848,13 +848,15 @@ bool cmInstallCommand::HandleFilesMode(std::vector<std::string> const& args)
return false;
}
const std::vector<std::string>& filesVector = files.GetVector();
// Check if there is something to do.
if(files.GetVector().empty())
if(filesVector.empty())
{
return true;
}
if(!ica.GetRename().empty() && files.GetVector().size() > 1)
if(!ica.GetRename().empty() && filesVector.size() > 1)
{
// The rename option works only with one file.
std::ostringstream e;
......@@ -864,7 +866,7 @@ bool cmInstallCommand::HandleFilesMode(std::vector<std::string> const& args)
}
std::vector<std::string> absFiles;
if (!this->MakeFilesFullPath(args[0].c_str(), files.GetVector(), absFiles))
if (!this->MakeFilesFullPath(args[0].c_str(), filesVector, absFiles))
{
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment