From d32df7f1ba57014dba143e330ab1211f39ad4868 Mon Sep 17 00:00:00 2001 From: Max Lyon Date: Tue, 20 Mar 2018 09:58:27 +0100 Subject: [PATCH] add some consts --- src/OpenMesh/Core/Mesh/TriConnectivity.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/OpenMesh/Core/Mesh/TriConnectivity.cc b/src/OpenMesh/Core/Mesh/TriConnectivity.cc index fc12ac00..fb77f87e 100644 --- a/src/OpenMesh/Core/Mesh/TriConnectivity.cc +++ b/src/OpenMesh/Core/Mesh/TriConnectivity.cc @@ -488,10 +488,10 @@ void TriConnectivity::split(EdgeHandle _eh, VertexHandle _vh) void TriConnectivity::split_copy(EdgeHandle _eh, VertexHandle _vh) { - VertexHandle v0 = to_vertex_handle(halfedge_handle(_eh, 0)); - VertexHandle v1 = to_vertex_handle(halfedge_handle(_eh, 1)); + const VertexHandle v0 = to_vertex_handle(halfedge_handle(_eh, 0)); + const VertexHandle v1 = to_vertex_handle(halfedge_handle(_eh, 1)); - int nf = n_faces(); + const int nf = n_faces(); // Split the halfedge ( handle will be preserved) split(_eh, _vh); @@ -504,7 +504,7 @@ void TriConnectivity::split_copy(EdgeHandle _eh, VertexHandle _vh) for (auto vh : {v0, v1}) { // get the halfedge pointing from new vertex to old vertex - HalfedgeHandle h = find_halfedge(_vh, vh); + const HalfedgeHandle h = find_halfedge(_vh, vh); if (!is_boundary(h)) // for boundaries there are no faces whose properties need to be copied { FaceHandle fh0 = face_handle(h);