]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Pass 'const double' objects by-value, rather than by-reference. 11646/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 28 Jan 2021 17:19:07 +0000 (10:19 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 28 Jan 2021 17:19:07 +0000 (10:19 -0700)
include/deal.II/fe/fe_point_evaluation.h

index ee1f544bae0725332aa476d3a6ed7f036059b73f..b902873f6d0a53f2750f8dc619ca0d84bda3f106 100644 (file)
@@ -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)
       {

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.