From fa6fa8bb7912c46a1bfa8c51dd7180bd0105735a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mael=20Rouxel-Labb=C3=A9?= Date: Fri, 24 Jan 2020 18:33:10 +0100 Subject: [PATCH] Put some const& around named parameters --- .../include/CGAL/Polygon_mesh_processing/distance.h | 2 +- .../include/CGAL/Polygon_mesh_processing/intersection.h | 6 +++--- Polyhedron/include/CGAL/IO/Polyhedron_iostream.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h index ee5e3c2e9bc..24a1a7b98e2 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/distance.h @@ -320,7 +320,7 @@ template OutputIterator sample_triangle_mesh(const TriangleMesh& tm, OutputIterator out, - NamedParameters np) + const NamedParameters& np) { typedef typename GetGeomTraits::type Geom_traits; diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/intersection.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/intersection.h index 0d036f3522f..5da01ae5bf4 100644 --- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/intersection.h +++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/intersection.h @@ -1585,8 +1585,8 @@ template OutputIterator intersecting_meshes(const TriangleMeshRange& range, OutputIterator out, - NamedParameters np, - NamedParametersRange nps) + const NamedParameters& np, + const NamedParametersRange& nps) { using parameters::choose_parameter; using parameters::get_parameter; @@ -1625,7 +1625,7 @@ OutputIterator intersecting_meshes(const TriangleMeshRange& range, template OutputIterator intersecting_meshes(const TriangleMeshRange& range, OutputIterator out, - NamedParameters np) + const NamedParameters& np) { std::vector >nps( std::distance(range.begin(), range.end()), parameters::all_default()); diff --git a/Polyhedron/include/CGAL/IO/Polyhedron_iostream.h b/Polyhedron/include/CGAL/IO/Polyhedron_iostream.h index b843afd88e0..a682e8596ec 100644 --- a/Polyhedron/include/CGAL/IO/Polyhedron_iostream.h +++ b/Polyhedron/include/CGAL/IO/Polyhedron_iostream.h @@ -62,7 +62,7 @@ template < class Traits, bool read_off(std::istream& in, Polyhedron_3& P, - NamedParameters np) { + const NamedParameters& np) { // reads a polyhedron from `in' and appends it to P. typedef typename CGAL::GetVertexPointMap, NamedParameters>::type Vpm; using parameters::choose_parameter;