From de606c98da05b1c8f8bbbace8aef317692175bb4 Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Fri, 2 Nov 2012 17:11:40 +0100
Subject: [PATCH] pass by value -> pass by reference

---
 src/mysolver.cc | 2 +-
 src/mysolver.hh | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mysolver.cc b/src/mysolver.cc
index 10f4f703..d8771464 100644
--- a/src/mysolver.cc
+++ b/src/mysolver.cc
@@ -13,7 +13,7 @@
 template <int dim, class MatrixType, class VectorType, class GridType,
           class BlockProblemType>
 MySolver<dim, MatrixType, VectorType, GridType, BlockProblemType>::MySolver(
-    Dune::ParameterTree parset, int refinements, double solver_tolerance,
+    Dune::ParameterTree const &parset, int refinements, double solver_tolerance,
     GridType const &grid, Dune::BitSetVector<dim> const &ignoreNodes)
     : baseEnergyNorm(linearBaseSolverStep),
       linearBaseSolver(&linearBaseSolverStep,
diff --git a/src/mysolver.hh b/src/mysolver.hh
index a8a5c60d..a87ed915 100644
--- a/src/mysolver.hh
+++ b/src/mysolver.hh
@@ -22,8 +22,9 @@ class MySolver {
                                             NonlinearSmootherType> SolverType;
 
 public:
-  MySolver(Dune::ParameterTree parset, int refinements, double solver_tolerance,
-           GridType const &grid, Dune::BitSetVector<dim> const &ignoreNodes);
+  MySolver(Dune::ParameterTree const &parset, int refinements,
+           double solver_tolerance, GridType const &grid,
+           Dune::BitSetVector<dim> const &ignoreNodes);
 
   ~MySolver();
 
-- 
GitLab