From: Wolfgang Bangerth Date: Tue, 28 Dec 2021 21:00:10 +0000 (-0700) Subject: Mark a bunch of arguments as 'const'. X-Git-Tag: v9.4.0-rc1~691^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13142%2Fhead;p=dealii.git Mark a bunch of arguments as 'const'. --- diff --git a/include/deal.II/grid/tria_accessor.templates.h b/include/deal.II/grid/tria_accessor.templates.h index b26c6514e9..70ad55af02 100644 --- a/include/deal.II/grid/tria_accessor.templates.h +++ b/include/deal.II/grid/tria_accessor.templates.h @@ -1753,7 +1753,8 @@ TriaAccessor::recursively_clear_user_pointer() const template void -TriaAccessor::set_user_index(unsigned int p) const +TriaAccessor::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::user_index() const template void TriaAccessor::recursively_set_user_index( - unsigned int p) const + const unsigned int p) const { set_user_index(p);