From 68e36dad44f0aa6365b28a5af9529ac01faf8a25 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 25 Sep 2022 13:29:40 -0500 Subject: [PATCH] CGAL: avoid a compiler warning Avoid an unnecessary copy: source/cgal/intersections.cc:555:25: note: use reference type to prevent copying 555 | for (const auto f : tria_quad.finite_facets()) | ^ | & --- source/cgal/intersections.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/cgal/intersections.cc b/source/cgal/intersections.cc index fbf5dd76b1..f3ea9d9d90 100644 --- a/source/cgal/intersections.cc +++ b/source/cgal/intersections.cc @@ -552,7 +552,7 @@ namespace CGALWrappers { const auto &tet = tria.tetrahedron(c); - for (const auto f : tria_quad.finite_facets()) + for (const auto &f : tria_quad.finite_facets()) { if (CGAL::do_intersect(tet, tria_quad.triangle(f))) { -- 2.39.5