diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-02-15 12:40:56 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-20 20:26:17 (GMT) |
commit | 05fec779d33b872721b9731e872125ebeb89403b (patch) | |
tree | a3e92d171bc1a692cea6cebe9b301c27f1978682 /Source | |
parent | 9c225767873ce64a745e865c6f1c3372a8ab45d9 (diff) | |
download | CMake-05fec779d33b872721b9731e872125ebeb89403b.zip CMake-05fec779d33b872721b9731e872125ebeb89403b.tar.gz CMake-05fec779d33b872721b9731e872125ebeb89403b.tar.bz2 |
cmTarget: Port loop to algorithm.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTarget.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 1ad0d48..ebcd810 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -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()); } } |