cmTarget: Port loop to algorithm.

This commit is contained in:
Stephen Kelly 2015-02-15 13:40:56 +01:00
parent 9c22576787
commit 05fec779d3
1 changed files with 3 additions and 6 deletions

View File

@ -1542,12 +1542,9 @@ void cmTarget::DeleteDependencyForVS6( DependencyMap& depMap,
if( map_itr != depMap.end() )
{
DependencyList& depList = map_itr->second;
DependencyList::iterator itr;
while( (itr = std::find(depList.begin(), depList.end(), dep)) !=
depList.end() )
{
depList.erase( itr );
}
DependencyList::iterator begin =
std::remove(depList.begin(), depList.end(), dep);
depList.erase(begin, depList.end());
}
}