Skip to content
Snippets Groups Projects
Commit 3abd8e30 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'cleanup/remove-const-on-returnbyvalue' into 'master'

[cleanup] Remove const on return type in return by value functions

See merge request !955
parents 161ccaff 87375ad8
No related branches found
No related tags found
1 merge request!955[cleanup] Remove const on return type in return by value functions
......@@ -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!");
......
......@@ -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!");
......
......@@ -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_; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment