Convert raw loops to vector member insert.
This commit is contained in:
parent
f3e92d2816
commit
aac44e71e6
|
@ -676,11 +676,8 @@ void cmComputeLinkDepends::InferDependencies()
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add the inferred dependencies to the graph.
|
// Add the inferred dependencies to the graph.
|
||||||
for(DependSet::const_iterator j = common.begin(); j != common.end(); ++j)
|
cmGraphEdgeList& edges = this->EntryConstraintGraph[depender_index];
|
||||||
{
|
edges.insert(edges.end(), common.begin(), common.end());
|
||||||
int dependee_index = *j;
|
|
||||||
this->EntryConstraintGraph[depender_index].push_back(dependee_index);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -738,11 +738,8 @@ cmLocalUnixMakefileGenerator3
|
||||||
// Add the output to the local help if requested.
|
// Add the output to the local help if requested.
|
||||||
if(in_help)
|
if(in_help)
|
||||||
{
|
{
|
||||||
for (std::vector<std::string>::const_iterator i = outputs.begin();
|
this->LocalHelp.insert(this->LocalHelp.end(),
|
||||||
i != outputs.end(); ++i)
|
outputs.begin(), outputs.end());
|
||||||
{
|
|
||||||
this->LocalHelp.push_back(*i);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue