diff --git a/dune/solvers/iterationsteps/mmgstep.hh b/dune/solvers/iterationsteps/mmgstep.hh index dda5b4955d5e1b65055626c70f7f9ff1105f879e..27099e4692c7d51b9acfed3eff891fb1de9d5d18 100644 --- a/dune/solvers/iterationsteps/mmgstep.hh +++ b/dune/solvers/iterationsteps/mmgstep.hh @@ -56,7 +56,7 @@ public: //! Set the hasObstacle bitfield DUNE_DEPRECATED_MSG("Setting by raw pointer is deprecated. Use l-value or r-value or a shared_ptr") void setHasObstacles(Dune::BitSetVector<dim>* hasObstacle) { - hasObstacle_ = Dune::stackobject_to_shared_ptr(hasObstacle); + hasObstacle_ = Dune::stackobject_to_shared_ptr(*hasObstacle); } //! Set the hasObstacle bitfield @@ -68,7 +68,7 @@ public: //! Set the obstacle field DUNE_DEPRECATED_MSG("Setting by raw pointer is deprecated. Use l-value or r-value or a shared_ptr") void setObstacles(ObstacleVectorType* obstacles) { - obstacles_ = Dune::stackobject_to_shared_ptr(obstacles); + obstacles_ = Dune::stackobject_to_shared_ptr(*obstacles); } //! Set the obstacle field