summaryrefslogtreecommitdiffstats
path: root/Source/cmFunctionCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-14 20:31:46 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-11 21:57:55 (GMT)
commit8910224950a2b723e0d4fd7c21a326af7fb2e050 (patch)
tree09eb05962917fc5f205db31ae06b8c105813617e /Source/cmFunctionCommand.cxx
parent7b8725bf8472ebf4781ddd60ef8fcca9c3ad98dd (diff)
downloadCMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.zip
CMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.tar.gz
CMake-8910224950a2b723e0d4fd7c21a326af7fb2e050.tar.bz2
Replace common loop pattern with cmJoin
Diffstat (limited to 'Source/cmFunctionCommand.cxx')
-rw-r--r--Source/cmFunctionCommand.cxx8
1 files changed, 2 insertions, 6 deletions
diff --git a/Source/cmFunctionCommand.cxx b/Source/cmFunctionCommand.cxx
index c33048c..b44e228 100644
--- a/Source/cmFunctionCommand.cxx
+++ b/Source/cmFunctionCommand.cxx
@@ -193,12 +193,8 @@ IsFunctionBlocked(const cmListFileFunction& lff, cmMakefile &mf,
if (!this->Depth)
{
std::string name = this->Args[0];
- std::vector<std::string>::size_type cc;
- name += "(";
- for ( cc = 0; cc < this->Args.size(); cc ++ )
- {
- name += " " + this->Args[cc];
- }
+ name += "( ";
+ name += cmJoin(this->Args, " ");
name += " )";
// create a new command and add it to cmake