From ea1a0a23124be362ccb3ded0117dbed30b323edc Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 2 Sep 2013 23:07:40 +0000 Subject: [PATCH] Mark a variable as const (because we can, and then we should). git-svn-id: https://svn.dealii.org/trunk@30564 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/dofs/dof_renumbering.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/source/dofs/dof_renumbering.cc b/deal.II/source/dofs/dof_renumbering.cc index 52646d1be3..2bc1ed384c 100644 --- a/deal.II/source/dofs/dof_renumbering.cc +++ b/deal.II/source/dofs/dof_renumbering.cc @@ -1200,11 +1200,11 @@ namespace DoFRenumbering if (tria) { #ifdef DEAL_II_WITH_P4EST - //this is a distributed Triangulation. We need to traverse the coarse - //cells in the order p4est does + // this is a distributed Triangulation. We need to traverse the coarse + // cells in the order p4est does for (unsigned int c = 0; c < tria->n_cells (0); ++c) { - unsigned int coarse_cell_index = + const unsigned int coarse_cell_index = tria->get_p4est_tree_to_coarse_cell_permutation() [c]; const typename DoFHandler::level_cell_iterator -- 2.39.5