From: Timo Heister Date: Tue, 7 May 2019 13:59:17 +0000 (-0400) Subject: make ptr const X-Git-Tag: v9.1.0-rc1~90^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=175e8265b5afab7dca3a458216c2e9bea9ded6c0;p=dealii.git make ptr const --- 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,