diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-25 14:53:20 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-11 21:58:04 (GMT) |
commit | 9380e85f865e29cd5968e91408a31d5160f4a4cb (patch) | |
tree | d2ef6fa191ac4d71df76bd621af169b642e07ebc /Source/cmMacroCommand.cxx | |
parent | bb10012fea677fd8aa1bbefd06061efcb7ec1955 (diff) | |
download | CMake-9380e85f865e29cd5968e91408a31d5160f4a4cb.zip CMake-9380e85f865e29cd5968e91408a31d5160f4a4cb.tar.gz CMake-9380e85f865e29cd5968e91408a31d5160f4a4cb.tar.bz2 |
Convert loops to cmJoin algorithm with cmRange.
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index 676e082..8f6364d 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -172,12 +172,7 @@ bool cmMacroHelperCommand::InvokeInitialPass } std::vector<std::string>::const_iterator eit = expandedArgs.begin() + (this->Args.size() - 1); - const char* sep = ""; - for( ; eit != expandedArgs.end(); ++eit) - { - argnDef += sep + *eit; - sep = ";"; - } + argnDef += cmJoin(cmRange(eit, expandedArgs.end()), ";"); } argnDefInitialized = true; } |