From: Wolfgang Bangerth Date: Wed, 11 Oct 2023 16:23:31 +0000 (-0600) Subject: Make a couple of loop variables 'const'. X-Git-Tag: relicensing~409^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5bf7d7a5d45a2a67a1e8e3533c8f705d436a7d32;p=dealii.git Make a couple of loop variables 'const'. --- diff --git a/tests/matrix_free/point_evaluation_27.cc b/tests/matrix_free/point_evaluation_27.cc index 06c39a2cba..1d37406611 100644 --- a/tests/matrix_free/point_evaluation_27.cc +++ b/tests/matrix_free/point_evaluation_27.cc @@ -93,7 +93,7 @@ test(const FiniteElement &fe) fe_point_eval.evaluate(buffer, EvaluationFlags::values); - for (unsigned int q : fe_point_eval.quadrature_point_indices()) + for (const unsigned int q : fe_point_eval.quadrature_point_indices()) { deallog << "Value at q " << q << ": " << fe_point_eval.get_value(q) << std::endl; diff --git a/tests/non_matching/mapping_info_03.cc b/tests/non_matching/mapping_info_03.cc index 795bad9a17..ecce078503 100644 --- a/tests/non_matching/mapping_info_03.cc +++ b/tests/non_matching/mapping_info_03.cc @@ -87,7 +87,8 @@ test() for (auto f : cell->face_indices()) { fe_point_eval.reinit(cell->active_cell_index(), f); - for (unsigned int q : fe_point_eval.quadrature_point_indices()) + for (const unsigned int q : + fe_point_eval.quadrature_point_indices()) deallog << fe_point_eval.JxW(q) << std::endl; } } @@ -123,7 +124,7 @@ test() for (const auto &cell : tria.active_cell_iterators()) { fe_point_eval.reinit(cell->active_cell_index()); - for (unsigned int q : fe_point_eval.quadrature_point_indices()) + for (const unsigned int q : fe_point_eval.quadrature_point_indices()) deallog << fe_point_eval.JxW(q) << std::endl; } }