From 1abb362c4a3138e91f4804aa092e3e886daddec0 Mon Sep 17 00:00:00 2001 From: lisajulia <contact@lisajulia.com> Date: Tue, 29 May 2018 15:57:00 +0200 Subject: [PATCH] dereferenced pointer arguments passed to Dune::stackobject_to_shared_ptr --- dune/solvers/iterationsteps/mmgstep.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/solvers/iterationsteps/mmgstep.hh b/dune/solvers/iterationsteps/mmgstep.hh index dda5b495..27099e46 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 -- GitLab