summaryrefslogtreecommitdiff
path: root/Source/cmComputeLinkDepends.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-01-27 21:34:01 +0100
committerStephen Kelly <steveire@gmail.com>2015-02-06 19:04:10 +0100
commit94e993a0c170cf84da9ddb026dfec9d8d99304e0 (patch)
tree0a6438af1e706d2eaf464da61791a7e98806e683 /Source/cmComputeLinkDepends.cxx
parent69dbe51b08bd6b4564d031d78034633f55ed4593 (diff)
downloadcmake-94e993a0c170cf84da9ddb026dfec9d8d99304e0.tar.gz
cmComputeLinkDepends: Remove temporary iterator copy.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r--Source/cmComputeLinkDepends.cxx3
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());
}
}