From c894b5054a66d8d1693802ee112d03c183d0575f Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 28 Dec 2021 14:00:10 -0700 Subject: [PATCH] Mark a bunch of arguments as 'const'. --- include/deal.II/grid/tria_accessor.templates.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.5