From: Wolfgang Bangerth <bangerth@colostate.edu> Date: Wed, 7 Jul 2021 23:11:55 +0000 (-0600) Subject: Don't use references where necessary. X-Git-Tag: v9.4.0-rc1~1153^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F12551%2Fhead;p=dealii.git Don't use references where necessary. --- diff --git a/include/deal.II/base/bounding_box.h b/include/deal.II/base/bounding_box.h index 045a2a0f21..2964fef076 100644 --- a/include/deal.II/base/bounding_box.h +++ b/include/deal.II/base/bounding_box.h @@ -218,7 +218,7 @@ public: * an assertion. */ void - extend(const Number &amount); + extend(const Number amount); /** * Compute the volume (i.e. the dim-dimensional measure) of the BoundingBox. @@ -487,7 +487,7 @@ operator!=(const BoundingBox<spacedim, Number> &box) const template <int spacedim, typename Number> inline void -BoundingBox<spacedim, Number>::extend(const Number &amount) +BoundingBox<spacedim, Number>::extend(const Number amount) { for (unsigned int d = 0; d < spacedim; ++d) { diff --git a/source/base/bounding_box.cc b/source/base/bounding_box.cc index 30c789d179..bf97f863c4 100644 --- a/source/base/bounding_box.cc +++ b/source/base/bounding_box.cc @@ -39,6 +39,8 @@ BoundingBox<spacedim, Number>::point_inside(const Point<spacedim, Number> &p, return true; } + + template <int spacedim, typename Number> void BoundingBox<spacedim, Number>::merge_with( @@ -55,6 +57,8 @@ BoundingBox<spacedim, Number>::merge_with( } } + + template <int spacedim, typename Number> NeighborType BoundingBox<spacedim, Number>::get_neighbor_type(