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=refs%2Fpull%2F8021%2Fhead;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,