summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-02-10 23:29:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-11 19:51:06 (GMT)
commit9fe8f49353f927882af256c7870eb24e4be0c9be (patch)
treec7c17e03ecb569246c266228205249cc17494649 /Source/cmMacroCommand.cxx
parentac26d4b343aece40b6b9a931ab619fc88d4b9492 (diff)
downloadCMake-9fe8f49353f927882af256c7870eb24e4be0c9be.zip
CMake-9fe8f49353f927882af256c7870eb24e4be0c9be.tar.gz
CMake-9fe8f49353f927882af256c7870eb24e4be0c9be.tar.bz2
cmMacroCommand: Replace a loop with cmJoin.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r--Source/cmMacroCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx
index 69fcca7..e7c6a29 100644
--- a/Source/cmMacroCommand.cxx
+++ b/Source/cmMacroCommand.cxx
@@ -262,11 +262,11 @@ 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 ++ )
+ if (!this->Args.empty())
{
- name += " " + this->Args[cc];
+ name += " ";
+ name += cmJoin(this->Args, " ");
}
name += " )";
mf.AddMacro(this->Args[0].c_str(), name.c_str());