Skip to content
Snippets Groups Projects
Commit 2c7871e2 authored by Lars Bilke's avatar Lars Bilke
Browse files

One can only erase on a non-const iterator.

parent ae1601c6
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,7 @@ const MeshLib::Mesh* ProjectData::getMesh(const std::string &name) const
bool ProjectData::removeMesh(const std::string &name)
{
for (std::vector<MeshLib::Mesh*>::const_iterator it = _msh_vec.begin(); it != _msh_vec.end(); ++it)
for (std::vector<MeshLib::Mesh*>::iterator it = _msh_vec.begin(); it != _msh_vec.end(); ++it)
if (name.compare((*it)->getName()) == 0)
{
delete *it;
......
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