Skip to content
Snippets Groups Projects
Commit bd502578 authored by Gauthier Becker's avatar Gauthier Becker
Browse files

Add const on methods that should be const

parent 2eb8cb53
No related branches found
No related tags found
No related merge requests found
......@@ -356,7 +356,7 @@ void GModel::snapVertices()
}
}
void GModel::getEntities(std::vector<GEntity*> &entities)
void GModel::getEntities(std::vector<GEntity*> &entities) const
{
entities.clear();
entities.insert(entities.end(), vertices.begin(), vertices.end());
......@@ -706,7 +706,7 @@ int GModel::getMeshStatus(bool countDiscrete)
return -1;
}
int GModel::getNumMeshVertices()
int GModel::getNumMeshVertices() const
{
std::vector<GEntity*> entities;
getEntities(entities);
......
......@@ -280,7 +280,7 @@ class GModel
void snapVertices();
// fill a vector containing all the entities in the model
void getEntities(std::vector<GEntity*> &entities);
void getEntities(std::vector<GEntity*> &entities) const;
// return the highest number associated with an elementary entity of
// a given dimension (or the highest overall if dim < 0)
......@@ -360,7 +360,7 @@ class GModel
void setMeshElementIndex(MElement *e, int index);
// return the total number of vertices in the mesh
int getNumMeshVertices();
int getNumMeshVertices() const;
// access a mesh vertex by tag, using the vertex cache
MVertex *getMeshVertexByTag(int n);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment