From: Wolfgang Bangerth Date: Tue, 3 Apr 2018 16:31:00 +0000 (-0600) Subject: Pass const scalar arguments by value, rather than reference. X-Git-Tag: v9.0.0-rc1~240^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6151%2Fhead;p=dealii.git Pass const scalar arguments by value, rather than reference. --- diff --git a/include/deal.II/grid/grid_tools.h b/include/deal.II/grid/grid_tools.h index da0f37e578..42cd7989e4 100644 --- a/include/deal.II/grid/grid_tools.h +++ b/include/deal.II/grid/grid_tools.h @@ -1372,9 +1372,9 @@ namespace GridTools compute_mesh_predicate_bounding_box ( const MeshType &mesh, const std::function &predicate, - const unsigned int &refinement_level = 0, - const bool &allow_merge = false, - const unsigned int &max_boxes = numbers::invalid_unsigned_int); + const unsigned int refinement_level = 0, + const bool allow_merge = false, + const unsigned int max_boxes = numbers::invalid_unsigned_int); /** * Given an array of points, use the global bounding box description obtained using diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 5d126f1c0d..05d1ed41f6 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -1806,9 +1806,9 @@ next_cell: compute_mesh_predicate_bounding_box (const MeshType &mesh, const std::function &predicate, - const unsigned int &refinement_level, - const bool &allow_merge, - const unsigned int &max_boxes) + const unsigned int refinement_level, + const bool allow_merge, + const unsigned int max_boxes) { // Algorithm brief description: begin with creating bounding boxes of all cells at // refinement_level (and coarser levels if there are active cells) which have the predicate diff --git a/source/grid/grid_tools.inst.in b/source/grid/grid_tools.inst.in index f8e55bc93b..53248ff85b 100644 --- a/source/grid/grid_tools.inst.in +++ b/source/grid/grid_tools.inst.in @@ -31,8 +31,11 @@ for (X : TRIANGULATIONS; deal_II_dimension : DIMENSIONS ; deal_II_space_dimensio template std::vector < BoundingBox< deal_II_space_dimension > > compute_mesh_predicate_bounding_box< X > - (const X &, const std::function::type&)> &, - const unsigned int &, const bool&, const unsigned int &); + (const X &, + const std::function::type&)> &, + const unsigned int, + const bool, + const unsigned int); \} #endif