diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-11 22:29:04 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-12 19:25:20 (GMT) |
commit | e5ebeae768a8310b5cfdce0aeff9419e1de51eaa (patch) | |
tree | 2f59eebc70ea8cd7bdaf0add3b840c1651c5e4b4 /Source/cmFunctionCommand.cxx | |
parent | 0ec1f45a138bd7a9ad618f6e9dfa077a6bc8533c (diff) | |
download | CMake-e5ebeae768a8310b5cfdce0aeff9419e1de51eaa.zip CMake-e5ebeae768a8310b5cfdce0aeff9419e1de51eaa.tar.gz CMake-e5ebeae768a8310b5cfdce0aeff9419e1de51eaa.tar.bz2 |
cmFunctionCommand: Split loop in two.
Diffstat (limited to 'Source/cmFunctionCommand.cxx')
-rw-r--r-- | Source/cmFunctionCommand.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx index b44e228..a0a14e8 100644 --- a/Source/cmFunctionCommand.cxx +++ b/Source/cmFunctionCommand.cxx @@ -128,8 +128,6 @@ bool cmFunctionHelperCommand::InvokeInitialPass // define ARGV and ARGN std::vector<std::string>::const_iterator eit; std::string argvDef; - std::string argnDef; - unsigned int cnt = 0; for ( eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit ) { if (!argvDef.empty()) @@ -137,6 +135,10 @@ bool cmFunctionHelperCommand::InvokeInitialPass argvDef += ";"; } argvDef += *eit; + } + std::string argnDef; + unsigned int cnt = 0; + for ( eit = expandedArgs.begin(); eit != expandedArgs.end(); ++eit ) if ( cnt >= this->Args.size()-1 ) { if (!argnDef.empty()) |