cmComputeLinkDepends: Remove temporary iterator copy.

This commit is contained in:
Stephen Kelly 2015-01-27 21:34:01 +01:00
parent 69dbe51b08
commit 94e993a0c1
1 changed files with 1 additions and 2 deletions

View File

@ -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());
}
}