cmLocalGenerator: Replace loop with find_first_not_of

This commit is contained in:
Stephen Kelly 2015-01-24 18:12:48 +01:00
parent 421eadb45b
commit 5fc53f1edb
1 changed files with 1 additions and 5 deletions

View File

@ -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, ":", "_");