From 273a93a44be68c407aaf7fc0ed5e961c3158f92d Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 14 Nov 2012 03:12:26 +0000 Subject: [PATCH] Mark input arguments as const. git-svn-id: https://svn.dealii.org/trunk@27531 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/meshworker/functional.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/deal.II/include/deal.II/meshworker/functional.h b/deal.II/include/deal.II/meshworker/functional.h index 8678e28f95..a7fce04ec7 100644 --- a/deal.II/include/deal.II/meshworker/functional.h +++ b/deal.II/include/deal.II/meshworker/functional.h @@ -47,7 +47,7 @@ namespace MeshWorker * number of functionals to * be computed. */ - void initialize(unsigned int n); + void initialize(const unsigned int n); /** * Initialize the local data * in the DoFInfo object used @@ -81,7 +81,7 @@ namespace MeshWorker * The value of the ith entry * in #results. */ - number operator() (unsigned int i) const; + number operator() (const unsigned int i) const; private: /** * The values into which the @@ -181,7 +181,7 @@ namespace MeshWorker * The value of the ith entry * in @p results. */ - number operator() (unsigned int i) const; + number operator() (const unsigned int i) const; private: DataVectors results; bool separate_faces; @@ -190,7 +190,7 @@ namespace MeshWorker template inline void - Functional::initialize(unsigned int n) + Functional::initialize(const unsigned int n) { results.resize(n); std::fill(results.begin(), results.end(), 0.); @@ -232,7 +232,7 @@ namespace MeshWorker template inline number - Functional::operator() (unsigned int i) const + Functional::operator() (const unsigned int i) const { AssertIndexRange(i, results.size()); return results[i]; -- 2.39.5