mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 11:18:40 +08:00
cmTarget: Port loop to algorithm.
This commit is contained in:
@@ -1542,12 +1542,9 @@ void cmTarget::DeleteDependencyForVS6( DependencyMap& depMap,
|
|||||||
if( map_itr != depMap.end() )
|
if( map_itr != depMap.end() )
|
||||||
{
|
{
|
||||||
DependencyList& depList = map_itr->second;
|
DependencyList& depList = map_itr->second;
|
||||||
DependencyList::iterator itr;
|
DependencyList::iterator begin =
|
||||||
while( (itr = std::find(depList.begin(), depList.end(), dep)) !=
|
std::remove(depList.begin(), depList.end(), dep);
|
||||||
depList.end() )
|
depList.erase(begin, depList.end());
|
||||||
{
|
|
||||||
depList.erase( itr );
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user