From 1b5632fcdc9d0baf642d8e986e994ac97dc2168d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 23 Mar 2022 22:56:23 +0100 Subject: [PATCH] do not care a ref as it will be update to the new position --- .../CGAL/Polygon_mesh_processing/tangential_relaxation.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/tangential_relaxation.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/tangential_relaxation.h index 7b64311a1a8..d73ddc100b2 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/tangential_relaxation.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/tangential_relaxation.h @@ -259,7 +259,7 @@ void tangential_relaxation(const VertexRange& vertices, // perform moves for(const VP_pair& vp : new_locations) { - const Point_3& initial_pos = get(vpm, vp.first); + const Point_3 initial_pos = get(vpm, vp.first); // make a copy on purpose const Vector_3 move(initial_pos, vp.second); put(vpm, vp.first, vp.second);