From: Wolfgang Bangerth Date: Wed, 14 Nov 2012 03:12:26 +0000 (+0000) Subject: Mark input arguments as const. X-Git-Tag: v8.0.0~1830 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edb897936f25c83abc960f77e0ad9ad8240e0bd4;p=dealii.git Mark input arguments as const. git-svn-id: https://svn.dealii.org/trunk@27531 0785d39b-7218-0410-832d-ea1e28bc413d --- 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];