]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't pass const int by reference
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 25 Aug 2018 17:40:36 +0000 (19:40 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 26 Aug 2018 10:50:41 +0000 (12:50 +0200)
source/lac/lapack_full_matrix.cc
source/lac/trilinos_solver.cc
source/numerics/data_out.cc

index d56d0ca9da46ba702766885a128222e90341c6df..933aef006bf796c02452068fb8610f762cb95f56 100644 (file)
@@ -160,7 +160,7 @@ namespace internal
                  std::vector<T> &      real_work,
                  std::vector<T> & /*complex work*/,
                  std::vector<types::blas_int> &integer_work,
-                 const types::blas_int &       work_flag,
+                 const types::blas_int         work_flag,
                  types::blas_int &             info)
     {
       Assert(job == 'A' || job == 'S' || job == 'O' || job == 'N',
index eae22fd400ee7c92900818fad4087f300c2b06cf..5354c9df2b51445eeadf0e29375da0a6a54aa454 100644 (file)
@@ -296,7 +296,7 @@ namespace TrilinosWrappers
       class TrilinosReductionControl : public AztecOO_StatusTest
       {
       public:
-        TrilinosReductionControl(const int &                 max_steps,
+        TrilinosReductionControl(const int                   max_steps,
                                  const double &              tolerance,
                                  const double &              reduction,
                                  const Epetra_LinearProblem &linear_problem);
@@ -364,7 +364,7 @@ namespace TrilinosWrappers
 
 
       TrilinosReductionControl::TrilinosReductionControl(
-        const int &                 max_steps,
+        const int                   max_steps,
         const double &              tolerance,
         const double &              reduction,
         const Epetra_LinearProblem &linear_problem)
index 03fe3202bf6c036d4d64b85b252641d4a5339040..0786356d96d55f31060ac5862be188a19233b3b5 100644 (file)
@@ -589,7 +589,7 @@ DataOut<dim, DoFHandlerType>::build_patches(
                 n_subdivisions,
                 curved_cell_region),
       // no copy-local-to-global function needed here
-      std::function<void(const int &)>(),
+      std::function<void(const int)>(),
       thread_data,
       /* dummy CopyData object = */ 0,
       // experimenting shows that we can make things run a bit

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.