Skip to content

Commit

Permalink
STYLE: FUTURE REMOVE GradientImageFilter::OverrideBoundaryCondition(T *)
Browse files Browse the repository at this point in the history
Deprecated (`ITK_FUTURE_LEGACY_REMOVE`) the overload of
`GradientImageFilter::OverrideBoundaryCondition` that has a raw pointer as
parameter, in favor of the overload that has a `unique_ptr` as parameter.
  • Loading branch information
N-Dekker committed Apr 2, 2024
1 parent 550c0f3 commit 650d8ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,12 @@ class ITK_TEMPLATE_EXPORT GradientImageFilter : public ImageToImageFilter<TInput
}
#endif

/** Allows to change the default boundary condition */
void
#ifndef ITK_FUTURE_LEGACY_REMOVE
/** Allows to change the default boundary condition
* \note This filter takes ownership of the specified boundary condition object. */
[[deprecated("Deprecated in favor of `OverrideBoundaryCondition(std::unique_ptr<BoundaryConditionType>)`.")]] void
OverrideBoundaryCondition(BoundaryConditionType * boundaryCondition);
#endif

/** Allows to change the default boundary condition */
void
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,15 @@ GradientImageFilter<TInputImage, TOperatorValueType, TOutputValueType, TOutputIm
this->ThreaderUpdateProgressOff();
}

#ifndef ITK_FUTURE_LEGACY_REMOVE
template <typename TInputImage, typename TOperatorValueType, typename TOutputValue, typename TOutputImage>
void
GradientImageFilter<TInputImage, TOperatorValueType, TOutputValue, TOutputImage>::OverrideBoundaryCondition(
BoundaryConditionType * boundaryCondition)
{
m_BoundaryCondition.reset(boundaryCondition);
}
#endif

template <typename TInputImage, typename TOperatorValueType, typename TOutputValue, typename TOutputImage>
void
Expand Down

0 comments on commit 650d8ca

Please sign in to comment.