]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark a bunch of arguments as 'const'. 13142/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 28 Dec 2021 21:00:10 +0000 (14:00 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 28 Dec 2021 21:00:10 +0000 (14:00 -0700)
include/deal.II/grid/tria_accessor.templates.h

index b26c6514e90727e8711121eba38fd98a6c996984..70ad55af027e2d7701477dadac4f54f398cfa391 100644 (file)
@@ -1753,7 +1753,8 @@ TriaAccessor<structdim, dim, spacedim>::recursively_clear_user_pointer() const
 
 template <int structdim, int dim, int spacedim>
 void
-TriaAccessor<structdim, dim, spacedim>::set_user_index(unsigned int p) const
+TriaAccessor<structdim, dim, spacedim>::set_user_index(
+  const unsigned int p) const
 {
   Assert(this->used(), TriaAccessorExceptions::ExcCellNotUsed());
   this->objects().user_index(this->present_index) = p;
@@ -1784,7 +1785,7 @@ TriaAccessor<structdim, dim, spacedim>::user_index() const
 template <int structdim, int dim, int spacedim>
 void
 TriaAccessor<structdim, dim, spacedim>::recursively_set_user_index(
-  unsigned int p) const
+  const unsigned int p) const
 {
   set_user_index(p);
 

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.