summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-24 17:12:48 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-02-05 19:44:25 (GMT)
commit5fc53f1edb2d003595ef224b31a805c3af0dc0e6 (patch)
tree9057020eb3dab0efe41002f3ecf08acaec0e8fb9 /Source/cmLocalGenerator.cxx
parent421eadb45b48d40aa7d0b5e42a48df4ba94b9fc0 (diff)
downloadCMake-5fc53f1edb2d003595ef224b31a805c3af0dc0e6.zip
CMake-5fc53f1edb2d003595ef224b31a805c3af0dc0e6.tar.gz
CMake-5fc53f1edb2d003595ef224b31a805c3af0dc0e6.tar.bz2
cmLocalGenerator: Replace loop with find_first_not_of
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 7ca7684..9109db4 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -3204,11 +3204,7 @@ cmLocalGenerator
std::string ssin = sin;
// Avoid full paths by removing leading slashes.
- std::string::size_type pos = 0;
- for(;pos < ssin.size() && ssin[pos] == '/'; ++pos)
- {
- }
- ssin = ssin.substr(pos);
+ ssin.erase(0, ssin.find_first_not_of("/"));
// Avoid full paths by removing colons.
cmSystemTools::ReplaceString(ssin, ":", "_");