install: Use an intermediate filesVector variable.

Reduce noise.
This commit is contained in:
Stephen Kelly 2015-05-14 18:23:43 +02:00
parent 36c275d857
commit 501c237a83
1 changed files with 5 additions and 3 deletions

View File

@ -848,13 +848,15 @@ bool cmInstallCommand::HandleFilesMode(std::vector<std::string> const& args)
return false; return false;
} }
const std::vector<std::string>& filesVector = files.GetVector();
// Check if there is something to do. // Check if there is something to do.
if(files.GetVector().empty()) if(filesVector.empty())
{ {
return true; 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. // The rename option works only with one file.
std::ostringstream e; std::ostringstream e;
@ -864,7 +866,7 @@ bool cmInstallCommand::HandleFilesMode(std::vector<std::string> const& args)
} }
std::vector<std::string> absFiles; 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; return false;
} }