From 18fc6638f3a88aaf05269d11dc1304e22142bdbf Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 27 Jun 2018 17:08:02 -0600 Subject: [PATCH] Pass an unsigned int by value, rather than reference. --- include/deal.II/numerics/kdtree.h | 2 +- source/numerics/kdtree.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.39.5