diff --git a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h index 80d6d49f318..c37d4b2092a 100644 --- a/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h +++ b/Surface_mesh/include/CGAL/Surface_mesh/Surface_mesh.h @@ -2472,20 +2472,33 @@ void Surface_mesh
::
clear()
{
- vprops_.resize(0);
- hprops_.resize(0);
- eprops_.resize(0);
- fprops_.resize(0);
+ vprops_.clear();
+ hprops_.clear();
+ eprops_.clear();
+ fprops_.clear();
- vprops_.shrink_to_fit();
- hprops_.shrink_to_fit();
- eprops_.shrink_to_fit();
- fprops_.shrink_to_fit();
+ vprops_.resize(0);
+ hprops_.resize(0);
+ eprops_.resize(0);
+ fprops_.resize(0);
- removed_vertices_ = removed_edges_ = removed_faces_ = 0;
- vertices_freelist_ = edges_freelist_ = faces_freelist_ = (std::numeric_limits