summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-25 14:53:20 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-11 21:58:04 (GMT)
commit9380e85f865e29cd5968e91408a31d5160f4a4cb (patch)
treed2ef6fa191ac4d71df76bd621af169b642e07ebc /Source/cmLocalGenerator.cxx
parentbb10012fea677fd8aa1bbefd06061efcb7ec1955 (diff)
downloadCMake-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.cxx8
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;