From: Wolfgang Bangerth Date: Thu, 28 Jan 2021 17:19:07 +0000 (-0700) Subject: Pass 'const double' objects by-value, rather than by-reference. X-Git-Tag: v9.3.0-rc1~549^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11646%2Fhead;p=dealii.git Pass 'const double' objects by-value, rather than by-reference. --- diff --git a/include/deal.II/fe/fe_point_evaluation.h b/include/deal.II/fe/fe_point_evaluation.h index ee1f544bae..b902873f6d 100644 --- a/include/deal.II/fe/fe_point_evaluation.h +++ b/include/deal.II/fe/fe_point_evaluation.h @@ -48,7 +48,7 @@ namespace internal using gradient_type = Tensor<1, n_components, Tensor<1, dim>>; static void - read_value(const double & vector_entry, + read_value(const double vector_entry, const unsigned int component, value_type & result) { @@ -128,7 +128,7 @@ namespace internal using gradient_type = Tensor<1, dim>; static void - read_value(const double &vector_entry, + read_value(const double vector_entry, const unsigned int, value_type &result) { @@ -198,7 +198,7 @@ namespace internal using gradient_type = Tensor<2, dim>; static void - read_value(const double & vector_entry, + read_value(const double vector_entry, const unsigned int component, value_type & result) { @@ -283,7 +283,7 @@ namespace internal using gradient_type = Tensor<1, 1>; static void - read_value(const double &vector_entry, + read_value(const double vector_entry, const unsigned int, value_type &result) {