]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Pass an unsigned int by value, rather than reference. 6853/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Jun 2018 23:08:02 +0000 (17:08 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 27 Jun 2018 23:08:02 +0000 (17:08 -0600)
include/deal.II/numerics/kdtree.h
source/numerics/kdtree.cc

index 16400fd9bf610f2802363c0c0fede3ba68d92b80..a069a445974849a87842998be1a310b62005d49c 100644 (file)
@@ -89,7 +89,7 @@ public:
    * your points, and do not call set_points() again, then all following results
    * will likely be wrong.
    */
-  KDTree(const unsigned int &           max_leaf_size = 10,
+  KDTree(const unsigned int             max_leaf_size = 10,
          const std::vector<Point<dim>> &pts = std::vector<Point<dim>>());
 
 
index 45b23a4fd641e553a1bd70d70648f00bef03206b..f3bd8514b3172903f635b6115845b17a93253df1 100644 (file)
@@ -8,7 +8,7 @@ DEAL_II_NAMESPACE_OPEN
 
 
 template <int dim>
-KDTree<dim>::KDTree(const unsigned int &           max_leaf_size,
+KDTree<dim>::KDTree(const unsigned int             max_leaf_size,
                     const std::vector<Point<dim>> &pts)
   : max_leaf_size(max_leaf_size)
 {

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.