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/cmListCommand.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/cmListCommand.cxx')
-rw-r--r-- | Source/cmListCommand.cxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Source/cmListCommand.cxx b/Source/cmListCommand.cxx index 8d1657d..dd0cfa9 100644 --- a/Source/cmListCommand.cxx +++ b/Source/cmListCommand.cxx @@ -259,14 +259,7 @@ bool cmListCommand::HandleAppendCommand(std::vector<std::string> const& args) { listString += ";"; } - const char* sep = ""; - size_t cc; - for ( cc = 2; cc < args.size(); ++ cc ) - { - listString += sep; - listString += args[cc]; - sep = ";"; - } + listString += cmJoin(cmRange(args).advance(2), ";"); this->Makefile->AddDefinition(listName, listString.c_str()); return true; |