diff options
Diffstat (limited to 'Source/cmLoadCommandCommand.cxx')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index d5a2f3a..b307148 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -166,18 +166,16 @@ cmLoadedCommand::~cmLoadedCommand() } // cmLoadCommandCommand -bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& argsIn) +bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args) { - if(argsIn.size() < 1 ) + if(args.size() < 1 ) { return true; } // the file must exist std::string fullPath = cmDynamicLoader::LibPrefix(); - fullPath += "cm" + argsIn[0] + cmDynamicLoader::LibExtension(); - std::vector<std::string> args; - cmSystemTools::ExpandListArguments(argsIn, args); + fullPath += "cm" + args[0] + cmDynamicLoader::LibExtension(); // search for the file std::vector<std::string> path; @@ -197,7 +195,7 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& argsIn) { fullPath = "Attempt to load command failed from file : "; fullPath += cmDynamicLoader::LibPrefix(); - fullPath += "cm" + argsIn[0] + cmDynamicLoader::LibExtension(); + fullPath += "cm" + args[0] + cmDynamicLoader::LibExtension(); this->SetError(fullPath.c_str()); return false; } |