From 87375ad86a047f43754f6e40e87efed2caac74eb Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Thu, 3 May 2018 13:25:16 +0200
Subject: [PATCH] [cleanup] Remove const on return type in return by value
 functions

---
 dumux/discretization/staggered/elementfacevariables.hh   | 2 +-
 dumux/discretization/staggered/elementvolumevariables.hh | 2 +-
 dumux/io/vtkoutputmodule.hh                              | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dumux/discretization/staggered/elementfacevariables.hh b/dumux/discretization/staggered/elementfacevariables.hh
index c4aec037e1..496ffc2ecb 100644
--- a/dumux/discretization/staggered/elementfacevariables.hh
+++ b/dumux/discretization/staggered/elementfacevariables.hh
@@ -169,7 +169,7 @@ public:
 
 private:
 
-    const int getLocalIdx_(const int scvfIdx) const
+    int getLocalIdx_(const int scvfIdx) const
     {
         auto it = std::find(faceVarIndices_.begin(), faceVarIndices_.end(), scvfIdx);
         assert(it != faceVarIndices_.end() && "Could not find the current face variables for scvfIdx!");
diff --git a/dumux/discretization/staggered/elementvolumevariables.hh b/dumux/discretization/staggered/elementvolumevariables.hh
index 20cf881b72..cba46de3b7 100644
--- a/dumux/discretization/staggered/elementvolumevariables.hh
+++ b/dumux/discretization/staggered/elementvolumevariables.hh
@@ -253,7 +253,7 @@ public:
 private:
     const GridVolumeVariables* gridVolVarsPtr_;
 
-    const int getLocalIdx_(const int volVarIdx) const
+    int getLocalIdx_(const int volVarIdx) const
     {
         auto it = std::find(volVarIndices_.begin(), volVarIndices_.end(), volVarIdx);
         assert(it != volVarIndices_.end() && "Could not find the current volume variables for volVarIdx!");
diff --git a/dumux/io/vtkoutputmodule.hh b/dumux/io/vtkoutputmodule.hh
index 4c6b375593..36e9840c0b 100644
--- a/dumux/io/vtkoutputmodule.hh
+++ b/dumux/io/vtkoutputmodule.hh
@@ -241,9 +241,9 @@ protected:
     const GridVariables& gridVariables() const { return gridVariables_; }
     const SolutionVector& sol() const { return sol_; }
 
-    const bool verbose() const { return verbose_; }
+    bool verbose() const { return verbose_; }
     const std::string& name() const { return name_; }
-    const Dune::VTK::DataMode dataMode() const { return dm_; }
+    Dune::VTK::DataMode dataMode() const { return dm_; }
 
     Dune::VTKWriter<GridView>& writer() { return *writer_; }
     Dune::VTKSequenceWriter<GridView>& sequenceWriter() { return sequenceWriter_; }
-- 
GitLab