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/cmLocalGenerator.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/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 05d8ab5..35956ad 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -3016,13 +3016,7 @@ cmLocalGenerator::ConvertToRelativePath(const std::vector<std::string>& local, { relative += "/"; } - const char* sep = ""; - for(unsigned int i=common; i < remote.size(); ++i) - { - relative += sep; - relative += remote[i]; - sep = "/"; - } + relative += cmJoin(cmRange(remote).advance(common), "/"); // Finally return the path. return relative; |