diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-14 20:26:44 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-18 14:14:36 (GMT) |
commit | aac44e71e6a6c2630f1c1e61b34cf91aa775dc02 (patch) | |
tree | 615249d36a9a30b12669b5d7d0661432a7dff721 /Source/cmComputeLinkDepends.cxx | |
parent | f3e92d281682ee482b1425675b9fccd372cd01f3 (diff) | |
download | CMake-aac44e71e6a6c2630f1c1e61b34cf91aa775dc02.zip CMake-aac44e71e6a6c2630f1c1e61b34cf91aa775dc02.tar.gz CMake-aac44e71e6a6c2630f1c1e61b34cf91aa775dc02.tar.bz2 |
Convert raw loops to vector member insert.
Diffstat (limited to 'Source/cmComputeLinkDepends.cxx')
-rw-r--r-- | Source/cmComputeLinkDepends.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Source/cmComputeLinkDepends.cxx b/Source/cmComputeLinkDepends.cxx index f0bae28..32d5cd3 100644 --- a/Source/cmComputeLinkDepends.cxx +++ b/Source/cmComputeLinkDepends.cxx @@ -676,11 +676,8 @@ void cmComputeLinkDepends::InferDependencies() } // Add the inferred dependencies to the graph. - for(DependSet::const_iterator j = common.begin(); j != common.end(); ++j) - { - int dependee_index = *j; - this->EntryConstraintGraph[depender_index].push_back(dependee_index); - } + cmGraphEdgeList& edges = this->EntryConstraintGraph[depender_index]; + edges.insert(edges.end(), common.begin(), common.end()); } } |