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());
|
std::sort(i->begin(), i->end());
|
||||||
|
|
||||||
// Make the edge list unique.
|
// Make the edge list unique.
|
||||||
EdgeList::iterator last = std::unique(i->begin(), i->end());
|
i->erase(std::unique(i->begin(), i->end()), i->end());
|
||||||
i->erase(last, i->end());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user