From 80d7852086016ad3cf190617b47756be5bd4fb5c Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 25 Aug 2018 19:40:36 +0200 Subject: [PATCH] Don't pass const int by reference --- source/lac/lapack_full_matrix.cc | 2 +- source/lac/trilinos_solver.cc | 4 ++-- source/numerics/data_out.cc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/lac/lapack_full_matrix.cc b/source/lac/lapack_full_matrix.cc index d56d0ca9da..933aef006b 100644 --- a/source/lac/lapack_full_matrix.cc +++ b/source/lac/lapack_full_matrix.cc @@ -160,7 +160,7 @@ namespace internal std::vector & real_work, std::vector & /*complex work*/, std::vector &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', diff --git a/source/lac/trilinos_solver.cc b/source/lac/trilinos_solver.cc index eae22fd400..5354c9df2b 100644 --- a/source/lac/trilinos_solver.cc +++ b/source/lac/trilinos_solver.cc @@ -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) diff --git a/source/numerics/data_out.cc b/source/numerics/data_out.cc index 03fe3202bf..0786356d96 100644 --- a/source/numerics/data_out.cc +++ b/source/numerics/data_out.cc @@ -589,7 +589,7 @@ DataOut::build_patches( n_subdivisions, curved_cell_region), // no copy-local-to-global function needed here - std::function(), + std::function(), thread_data, /* dummy CopyData object = */ 0, // experimenting shows that we can make things run a bit -- 2.39.5