From: Wolfgang Bangerth 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 &box) const template inline void -BoundingBox::extend(const Number &amount) +BoundingBox::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::point_inside(const Point &p, return true; } + + template void BoundingBox::merge_with( @@ -55,6 +57,8 @@ BoundingBox::merge_with( } } + + template NeighborType BoundingBox::get_neighbor_type(