From 175e8265b5afab7dca3a458216c2e9bea9ded6c0 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Tue, 7 May 2019 09:59:17 -0400 Subject: [PATCH] make ptr const --- include/deal.II/distributed/tria.h | 2 +- source/distributed/tria.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/distributed/tria.h b/include/deal.II/distributed/tria.h index eac6147b04..243b4e506a 100644 --- a/include/deal.II/distributed/tria.h +++ b/include/deal.II/distributed/tria.h @@ -822,7 +822,7 @@ namespace parallel * @warning: If you modify the p4est object, internal data structures * can become inconsistent. */ - typename dealii::internal::p4est::types::forest * + const typename dealii::internal::p4est::types::forest * get_p4est() const; /** diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index ddbfa0fa3f..7025f659d9 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -2888,7 +2888,7 @@ namespace parallel template - typename dealii::internal::p4est::types::forest * + const typename dealii::internal::p4est::types::forest * Triangulation::get_p4est() const { Assert(parallel_forest != nullptr, -- 2.39.5