Skip to content
Snippets Groups Projects
Commit 3a02d979 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Merge branch 'dereferencedPointerArguments' into 'master'

dereferenced pointer arguments passed to Dune::stackobject_to_shared_ptr

See merge request !24
parents fad32e71 1abb362c
No related branches found
No related tags found
1 merge request!24dereferenced pointer arguments passed to Dune::stackobject_to_shared_ptr
Pipeline #
...@@ -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