From: Wolfgang Bangerth Date: Tue, 8 Jan 2013 19:26:22 +0000 (+0000) Subject: Mark a couple of variables as const. X-Git-Tag: v8.0.0~1627 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6e03399cc936f32fb2cf02a76ab3f599f151612;p=dealii.git Mark a couple of variables as const. git-svn-id: https://svn.dealii.org/trunk@27977 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/base/tensor_product_polynomials_const.cc b/deal.II/source/base/tensor_product_polynomials_const.cc index 0f67c765ef..d85de23467 100644 --- a/deal.II/source/base/tensor_product_polynomials_const.cc +++ b/deal.II/source/base/tensor_product_polynomials_const.cc @@ -87,7 +87,7 @@ double TensorProductPolynomialsConst::compute_value (const unsigned int i, const Point &p) const { - unsigned int max_indices = Utilities::fixed_power(polynomials.size()); + const unsigned int max_indices = Utilities::fixed_power(polynomials.size()); Assert (i<=max_indices, ExcInternalError()); if (i TensorProductPolynomialsConst::compute_grad (const unsigned int i, const Point &p) const { - unsigned int max_indices=pow(polynomials.size(),dim); + const unsigned int max_indices=pow(polynomials.size(),dim); Assert (i<=max_indices, ExcInternalError()); Tensor<1,dim> grad; @@ -158,7 +158,7 @@ Tensor<2,dim> TensorProductPolynomialsConst::compute_grad_grad (const unsigned int i, const Point &p) const { - unsigned int max_indices=pow(polynomials.size(),dim); + const unsigned int max_indices=pow(polynomials.size(),dim); Assert (i<=max_indices, ExcInternalError()); Tensor<2,dim> grad_grad;