]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not take scalars by reference. 15544/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2023 16:18:35 +0000 (10:18 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 1 Jul 2023 16:18:35 +0000 (10:18 -0600)
include/deal.II/lac/affine_constraints.h

index 906e2be1f6c622f9d87b2f587b410ab7259b2f2a..bdb4671b17f4986d75fe3361716cc9ddf01d7f3e 100644 (file)
@@ -1654,7 +1654,7 @@ public:
     ConstraintLine(const size_type &index = numbers::invalid_dof_index,
                    const typename AffineConstraints<
                      number>::ConstraintLine::Entries &entries       = {},
-                   const number &                      inhomogeneity = 0.0);
+                   const number                        inhomogeneity = 0.0);
 
     /**
      * Copy constructor.
@@ -2532,7 +2532,7 @@ template <typename number>
 inline AffineConstraints<number>::ConstraintLine::ConstraintLine(
   const size_type &                                                  index,
   const typename AffineConstraints<number>::ConstraintLine::Entries &entries,
-  const number &inhomogeneity)
+  const number inhomogeneity)
   : index(index)
   , entries(entries)
   , inhomogeneity(inhomogeneity)

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.