]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't use references where necessary. 12551/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 7 Jul 2021 23:11:55 +0000 (17:11 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 7 Jul 2021 23:11:55 +0000 (17:11 -0600)
include/deal.II/base/bounding_box.h
source/base/bounding_box.cc

index 045a2a0f21d80aafd46e7b21409728699ca8ce39..2964fef07680992005f4b0a604b38030e5d49e30 100644 (file)
@@ -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)
     {
index 30c789d179672780890459c9da79cb3507cd8525..bf97f863c4df4a0bff4bc685bc2bb9574b94bdb2 100644 (file)
@@ -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(

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.