cmMacroCommand: Remove intermediate arg variables.
This commit is contained in:
parent
f2c49f59d8
commit
8e0827b646
|
@ -161,9 +161,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
|||
// repleace ARGN
|
||||
if (tmps.find("${ARGN}") != std::string::npos)
|
||||
{
|
||||
std::string argnDef;
|
||||
argnDef += expandedArgn;
|
||||
cmSystemTools::ReplaceString(tmps, "${ARGN}", argnDef.c_str());
|
||||
cmSystemTools::ReplaceString(tmps, "${ARGN}", expandedArgn.c_str());
|
||||
}
|
||||
|
||||
// if the current argument of the current function has ${ARGV in it
|
||||
|
@ -171,10 +169,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
|
|||
if (tmps.find("${ARGV") != std::string::npos)
|
||||
{
|
||||
char argvName[60];
|
||||
|
||||
std::string argvDef;
|
||||
argvDef += expandedArgv;
|
||||
cmSystemTools::ReplaceString(tmps, "${ARGV}", argvDef.c_str());
|
||||
cmSystemTools::ReplaceString(tmps, "${ARGV}", expandedArgv.c_str());
|
||||
|
||||
// also replace the ARGV1 ARGV2 ... etc
|
||||
for (unsigned int t = 0; t < expandedArgs.size(); ++t)
|
||||
|
|
Loading…
Reference in New Issue