From: Wolfgang Bangerth Date: Wed, 14 Nov 2012 03:14:18 +0000 (+0000) Subject: Mark a few local variables as const. X-Git-Tag: v8.0.0~1829 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9be4dbe587db6464ed0a1e35ad59f05ac3497ac5;p=dealii.git Mark a few local variables as const. git-svn-id: https://svn.dealii.org/trunk@27532 0785d39b-7218-0410-832d-ea1e28bc413d --- 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;