]> https://gitweb.dealii.org/ - dealii.git/commitdiff
make ptr const 8021/head
authorTimo Heister <timo.heister@gmail.com>
Tue, 7 May 2019 13:59:17 +0000 (09:59 -0400)
committerTimo Heister <timo.heister@gmail.com>
Tue, 7 May 2019 16:07:37 +0000 (12:07 -0400)
include/deal.II/distributed/tria.h
source/distributed/tria.cc

index eac6147b04f86618a065d8355117f713fa853c3e..243b4e506a820f3be7c6680976cf66f00af7406c 100644 (file)
@@ -822,7 +822,7 @@ namespace parallel
        * @warning: If you modify the p4est object, internal data structures
        * can become inconsistent.
        */
-      typename dealii::internal::p4est::types<dim>::forest *
+      const typename dealii::internal::p4est::types<dim>::forest *
       get_p4est() const;
 
       /**
index ddbfa0fa3f01f84605e89e2d52564ac7a9847844..7025f659d9b0c537e0bed9aaa1aa03383ef8607f 100644 (file)
@@ -2888,7 +2888,7 @@ namespace parallel
 
 
     template <int dim, int spacedim>
-    typename dealii::internal::p4est::types<dim>::forest *
+    const typename dealii::internal::p4est::types<dim>::forest *
     Triangulation<dim, spacedim>::get_p4est() const
     {
       Assert(parallel_forest != nullptr,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.