From c849808eacc26116f88e9d066e2de836218ebc65 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 7 Jul 2021 17:11:55 -0600 Subject: [PATCH] Don't use references where necessary. --- include/deal.II/base/bounding_box.h | 4 ++-- source/base/bounding_box.cc | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) 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( -- 2.39.5