From: Wolfgang Bangerth Date: Wed, 27 Jun 2018 23:08:02 +0000 (-0600) Subject: Pass an unsigned int by value, rather than reference. X-Git-Tag: v9.1.0-rc1~975^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6853%2Fhead;p=dealii.git Pass an unsigned int by value, rather than reference. --- diff --git a/include/deal.II/numerics/kdtree.h b/include/deal.II/numerics/kdtree.h index 16400fd9bf..a069a44597 100644 --- a/include/deal.II/numerics/kdtree.h +++ b/include/deal.II/numerics/kdtree.h @@ -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> &pts = std::vector>()); diff --git a/source/numerics/kdtree.cc b/source/numerics/kdtree.cc index 45b23a4fd6..f3bd8514b3 100644 --- a/source/numerics/kdtree.cc +++ b/source/numerics/kdtree.cc @@ -8,7 +8,7 @@ DEAL_II_NAMESPACE_OPEN template -KDTree::KDTree(const unsigned int & max_leaf_size, +KDTree::KDTree(const unsigned int max_leaf_size, const std::vector> &pts) : max_leaf_size(max_leaf_size) {