diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-10 22:26:58 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-11 21:58:08 (GMT) |
commit | 559dc15589ad0b9a7bdaa62ac7552899993f6f0d (patch) | |
tree | 9519e92a1268f5a0561db842e820c58bc1958c7b /Source/cmSetCommand.cxx | |
parent | 0ea719326ea78b423a5ec95b1218b626e9392f07 (diff) | |
download | CMake-559dc15589ad0b9a7bdaa62ac7552899993f6f0d.zip CMake-559dc15589ad0b9a7bdaa62ac7552899993f6f0d.tar.gz CMake-559dc15589ad0b9a7bdaa62ac7552899993f6f0d.tar.bz2 |
cmSet: Replace loop with cmJoin.
Diffstat (limited to 'Source/cmSetCommand.cxx')
-rw-r--r-- | Source/cmSetCommand.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/cmSetCommand.cxx b/Source/cmSetCommand.cxx index 90d7b03..204d95b 100644 --- a/Source/cmSetCommand.cxx +++ b/Source/cmSetCommand.cxx @@ -108,17 +108,7 @@ bool cmSetCommand } // collect any values into a single semi-colon separated value list - if(static_cast<unsigned short>(args.size()) > - static_cast<unsigned short>(1 + ignoreLastArgs)) - { - value = args[1]; - size_t endPos = args.size() - ignoreLastArgs; - for(size_t i = 2; i < endPos; ++i) - { - value += ";"; - value += args[i]; - } - } + value = cmJoin(cmRange(args).advance(1).retreat(ignoreLastArgs), ";"); if (parentScope) { |