From: bangerth Date: Mon, 2 Sep 2013 23:07:40 +0000 (+0000) Subject: Mark a variable as const (because we can, and then we should). X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7915a33d32161b23792b4107d638421ddcdbcd5;p=dealii-svn.git 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 --- 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