Skip to content

Commit

Permalink
Don't use references where necessary.
Browse files Browse the repository at this point in the history
  • Loading branch information
bangerth committed Jul 7, 2021
1 parent 94b0749 commit c849808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/deal.II/base/bounding_box.h
Expand Up @@ -218,7 +218,7 @@ class BoundingBox
* an assertion.
*/
void
extend(const Number &amount);
extend(const Number amount);

/**
* Compute the volume (i.e. the dim-dimensional measure) of the BoundingBox.
Expand Down Expand Up @@ -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)
{
Expand Down
4 changes: 4 additions & 0 deletions source/base/bounding_box.cc
Expand Up @@ -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(
Expand All @@ -55,6 +57,8 @@ BoundingBox<spacedim, Number>::merge_with(
}
}



template <int spacedim, typename Number>
NeighborType
BoundingBox<spacedim, Number>::get_neighbor_type(
Expand Down

0 comments on commit c849808

Please sign in to comment.