diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-27 21:34:01 +0100 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-06 19:04:10 +0100 |
commit | 94e993a0c170cf84da9ddb026dfec9d8d99304e0 (patch) | |
tree | 0a6438af1e706d2eaf464da61791a7e98806e683 /Source/cmComputeLinkDepends.cxx | |
parent | 69dbe51b08bd6b4564d031d78034633f55ed4593 (diff) | |
download | cmake-94e993a0c170cf84da9ddb026dfec9d8d99304e0.tar.gz |
cmComputeLinkDepends: Remove temporary iterator copy.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r-- | Source/cmComputeLinkDepends.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index fa1bbcceaf..86526905a1 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -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()); } } |