summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-11 19:14:30 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-11 21:58:33 (GMT)
commita551851ab3f23f58074638ffcf38a08d98a35fa8 (patch)
tree33bfa2db9a37a42ad2491062e0ff5baffb3e818d /Source/cmMacroCommand.cxx
parentf79c0f7697ee0bd25ec74f7dbb2ac0cf6189a9df (diff)
downloadCMake-a551851ab3f23f58074638ffcf38a08d98a35fa8.zip
CMake-a551851ab3f23f58074638ffcf38a08d98a35fa8.tar.gz
CMake-a551851ab3f23f58074638ffcf38a08d98a35fa8.tar.bz2
cmMacroCommand: Inline variable computation.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 8424c75..6f45484 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -86,7 +86,6 @@ bool cmMacroHelperCommand::InvokeInitialPass
std::string tmps;
cmListFileArgument arg;
- std::string variable;
// make sure the number of arguments passed is at least the number
// required by the signature
@@ -119,10 +118,7 @@ bool cmMacroHelperCommand::InvokeInitialPass
variables.reserve(this->Args.size() - 1);
for (unsigned int j = 1; j < this->Args.size(); ++j)
{
- std::string variable = "${";
- variable += this->Args[j];
- variable += "}";
- variables.push_back(variable);
+ variables.push_back("${" + this->Args[j] + "}");
}
if(!this->Functions.empty())
{