Skip to content

Commit 9843157

Browse files
committed
STYLE: FUTURE REMOVE GradientImageFilter::OverrideBoundaryCondition(T *)
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.
1 parent 48f2388 commit 9843157

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

Modules/Filtering/ImageGradient/include/itkGradientImageFilter.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,12 @@ class ITK_TEMPLATE_EXPORT GradientImageFilter : public ImageToImageFilter<TInput
141141
}
142142
#endif
143143

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

148151
/** Allows to change the default boundary condition */
149152
void

Modules/Filtering/ImageGradient/include/itkGradientImageFilter.hxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ GradientImageFilter<TInputImage, TOperatorValueType, TOutputValueType, TOutputIm
3737
this->ThreaderUpdateProgressOff();
3838
}
3939

40+
#ifndef ITK_FUTURE_LEGACY_REMOVE
4041
template <typename TInputImage, typename TOperatorValueType, typename TOutputValue, typename TOutputImage>
4142
void
4243
GradientImageFilter<TInputImage, TOperatorValueType, TOutputValue, TOutputImage>::OverrideBoundaryCondition(
4344
BoundaryConditionType * boundaryCondition)
4445
{
4546
m_BoundaryCondition.reset(boundaryCondition);
4647
}
48+
#endif
4749

4850
template <typename TInputImage, typename TOperatorValueType, typename TOutputValue, typename TOutputImage>
4951
void

0 commit comments

Comments
 (0)