diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-27 20:34:01 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-02-06 18:04:10 (GMT) |
commit | 94e993a0c170cf84da9ddb026dfec9d8d99304e0 (patch) | |
tree | 0a6438af1e706d2eaf464da61791a7e98806e683 /Source/cmComputeLinkDepends.cxx | |
parent | 69dbe51b08bd6b4564d031d78034633f55ed4593 (diff) | |
download | CMake-94e993a0c170cf84da9ddb026dfec9d8d99304e0.zip CMake-94e993a0c170cf84da9ddb026dfec9d8d99304e0.tar.gz CMake-94e993a0c170cf84da9ddb026dfec9d8d99304e0.tar.bz2 |
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 fa1bbcc..8652690 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()); } } |