Skip to content
Snippets Groups Projects
Commit 1abb362c authored by lisajulia's avatar lisajulia
Browse files

dereferenced pointer arguments passed to Dune::stackobject_to_shared_ptr

parent fad32e71
No related branches found
No related tags found
1 merge request!24dereferenced pointer arguments passed to Dune::stackobject_to_shared_ptr
...@@ -56,7 +56,7 @@ public: ...@@ -56,7 +56,7 @@ public:
//! Set the hasObstacle bitfield //! Set the hasObstacle bitfield
DUNE_DEPRECATED_MSG("Setting by raw pointer is deprecated. Use l-value or r-value or a shared_ptr") 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) { void setHasObstacles(Dune::BitSetVector<dim>* hasObstacle) {
hasObstacle_ = Dune::stackobject_to_shared_ptr(hasObstacle); hasObstacle_ = Dune::stackobject_to_shared_ptr(*hasObstacle);
} }
//! Set the hasObstacle bitfield //! Set the hasObstacle bitfield
...@@ -68,7 +68,7 @@ public: ...@@ -68,7 +68,7 @@ public:
//! Set the obstacle field //! Set the obstacle field
DUNE_DEPRECATED_MSG("Setting by raw pointer is deprecated. Use l-value or r-value or a shared_ptr") DUNE_DEPRECATED_MSG("Setting by raw pointer is deprecated. Use l-value or r-value or a shared_ptr")
void setObstacles(ObstacleVectorType* obstacles) { void setObstacles(ObstacleVectorType* obstacles) {
obstacles_ = Dune::stackobject_to_shared_ptr(obstacles); obstacles_ = Dune::stackobject_to_shared_ptr(*obstacles);
} }
//! Set the obstacle field //! Set the obstacle field
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment