]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Mark a few local variables as const.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 14 Nov 2012 03:14:18 +0000 (03:14 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 14 Nov 2012 03:14:18 +0000 (03:14 +0000)
git-svn-id: https://svn.dealii.org/trunk@27532 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/meshworker/loop.h

index c3d2d3224cf4f70d6555e4317aa41f98b4806c79..be1055e50f420970f62bdde0c3ce978144512bee 100644 (file)
@@ -162,9 +162,9 @@ namespace MeshWorker
             Assert(!cell->has_children(), ExcInternalError());
             Assert(!neighbor->has_children(), ExcInternalError());
 
-            std::pair<unsigned int, unsigned int> neighbor_face_no
+            const std::pair<unsigned int, unsigned int> 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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.