From 1de13acd9efc46b0d4d5112390371c1f1a9330d3 Mon Sep 17 00:00:00 2001 From: bangerth Date: Tue, 8 Jan 2013 19:26:22 +0000 Subject: [PATCH] Mark a couple of variables as const. git-svn-id: https://svn.dealii.org/trunk@27977 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/base/tensor_product_polynomials_const.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.5