From 501c237a83001a8783b2249bd5f5066c3472a2aa Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Thu, 14 May 2015 18:23:43 +0200 Subject: [PATCH] install: Use an intermediate filesVector variable. Reduce noise. --- Source/cmInstallCommand.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx index 78603c8f6..24de1b5ce 100644 --- a/Source/cmInstallCommand.cxx +++ b/Source/cmInstallCommand.cxx @@ -848,13 +848,15 @@ bool cmInstallCommand::HandleFilesMode(std::vector const& args) return false; } + const std::vector& 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 const& args) } std::vector absFiles; - if (!this->MakeFilesFullPath(args[0].c_str(), files.GetVector(), absFiles)) + if (!this->MakeFilesFullPath(args[0].c_str(), filesVector, absFiles)) { return false; }