diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-05-14 16:23:43 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-05-14 16:23:43 (GMT) |
commit | 501c237a83001a8783b2249bd5f5066c3472a2aa (patch) | |
tree | 020be5ea281a4fb9fe7382af0911594a207280d7 | |
parent | 36c275d857d1764f37df450361ed816d24091300 (diff) | |
download | CMake-501c237a83001a8783b2249bd5f5066c3472a2aa.zip CMake-501c237a83001a8783b2249bd5f5066c3472a2aa.tar.gz CMake-501c237a83001a8783b2249bd5f5066c3472a2aa.tar.bz2 |
install: Use an intermediate filesVector variable.
Reduce noise.
-rw-r--r-- | Source/cmInstallCommand.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 78603c8..24de1b5 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -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; } |