From ea6887c5606347779f6b4d55daecdbd25d8d3afa Mon Sep 17 00:00:00 2001 From: bangerth Date: Wed, 14 Nov 2012 03:14:18 +0000 Subject: [PATCH] Mark a few local variables as const. git-svn-id: https://svn.dealii.org/trunk@27532 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/meshworker/loop.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deal.II/include/deal.II/meshworker/loop.h b/deal.II/include/deal.II/meshworker/loop.h index c3d2d3224c..be1055e50f 100644 --- a/deal.II/include/deal.II/meshworker/loop.h +++ b/deal.II/include/deal.II/meshworker/loop.h @@ -162,9 +162,9 @@ namespace MeshWorker Assert(!cell->has_children(), ExcInternalError()); Assert(!neighbor->has_children(), ExcInternalError()); - std::pair neighbor_face_no + const std::pair neighbor_face_no = cell->neighbor_of_coarser_neighbor(face_no); - typename ITERATOR::AccessorType::Container::face_iterator nface + const typename ITERATOR::AccessorType::Container::face_iterator nface = neighbor->face(neighbor_face_no.first); dof_info.interior_face_available[face_no] = true; @@ -196,7 +196,7 @@ namespace MeshWorker if (internal::is_active_iterator(cell) && neighbor->has_children()) continue; - unsigned int neighbor_face_no = cell->neighbor_face_no(face_no); + const unsigned int neighbor_face_no = cell->neighbor_face_no(face_no); Assert (neighbor->face(neighbor_face_no) == face, ExcInternalError()); // Regular interior face dof_info.interior_face_available[face_no] = true; -- 2.39.5