mirror of
https://github.com/reactos/CMake.git
synced 2025-03-04 01:47:37 +00:00
cmComputeLinkDepends: Remove temporary iterator copy.
This commit is contained in:
parent
69dbe51b08
commit
94e993a0c1
@ -692,8 +692,7 @@ void cmComputeLinkDepends::CleanConstraintGraph()
|
||||
std::sort(i->begin(), i->end());
|
||||
|
||||
// Make the edge list unique.
|
||||
EdgeList::iterator last = std::unique(i->begin(), i->end());
|
||||
i->erase(last, i->end());
|
||||
i->erase(std::unique(i->begin(), i->end()), i->end());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user