diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-10 23:29:20 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-11 19:51:06 (GMT) |
commit | 9fe8f49353f927882af256c7870eb24e4be0c9be (patch) | |
tree | c7c17e03ecb569246c266228205249cc17494649 /Source/cmMacroCommand.cxx | |
parent | ac26d4b343aece40b6b9a931ab619fc88d4b9492 (diff) | |
download | CMake-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.cxx | 6 |
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()); |