Commit 94fd258f authored by Darcy Beurle's avatar Darcy Beurle

Return directly

parent 42dad99c
......@@ -315,9 +315,7 @@ std::vector<MVertex*> GFace::getEmbeddedMeshVertices() const
it != embedded_vertices.end(); it++){
tmp.insert((*it)->mesh_vertices.begin(), (*it)->mesh_vertices.end());
}
std::vector<MVertex*> res;
res.insert(res.end(), tmp.begin(), tmp.end());
return res;
return std::vector<MVertex*>(tmp.begin(), tmp.end());
}
std::list<GVertex*> GFace::vertices() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment