From: Matthias Maier Date: Sun, 25 Sep 2022 18:29:40 +0000 (-0500) Subject: CGAL: avoid a compiler warning X-Git-Tag: v9.5.0-rc1~923^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68e36dad44f0aa6365b28a5af9529ac01faf8a25;p=dealii.git 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()) | ^ | & --- 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))) {