Skip to content

FUTURE_LEGACY_REMOVE BoundaryConditionPointerType, replace with BoundaryConditionType *#4538

Merged
thewtex merged 3 commits intoInsightSoftwareConsortium:masterfrom
N-Dekker:FUTURE_LEGACY_REMOVE-BoundaryConditionPointerType
Apr 1, 2024
Merged

FUTURE_LEGACY_REMOVE BoundaryConditionPointerType, replace with BoundaryConditionType *#4538
thewtex merged 3 commits intoInsightSoftwareConsortium:masterfrom
N-Dekker:FUTURE_LEGACY_REMOVE-BoundaryConditionPointerType

Conversation

@N-Dekker
Copy link
Contributor

BoundaryConditionPointerType is just a type alias for BoundaryConditionType *. It appears much clearer to directly use BoundaryConditionType *, to explicitly make clear when using a raw pointer, rather than a smart pointer.

Made it clearer that ConvolutionImageFilterBase and PadImageFilterBase use a
_raw_ pointer to the `BoundaryCondition`.
FFTConvolutionImageFilter does not use `BoundaryConditionPointerType`.
@github-actions github-actions bot added the area:Filtering Issues affecting the Filtering module label Mar 27, 2024
It appears much clearer to directly use `BoundaryConditionType *`, to explicitly
make clear when using a _raw_ pointer, rather than a _smart_ pointer.

Note that the BoundaryConditionPointerType aliases of PadImageFilter and
FFTPadImageFilter were unnecessary anyway, as they might be inherited from their
base class, PadImageFilterBase.
@N-Dekker N-Dekker force-pushed the FUTURE_LEGACY_REMOVE-BoundaryConditionPointerType branch from a33368f to 226802f Compare March 27, 2024 15:52
@N-Dekker N-Dekker marked this pull request as ready for review March 27, 2024 17:50
Copy link
Member

@thewtex thewtex left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@thewtex thewtex merged commit f44304d into InsightSoftwareConsortium:master Apr 1, 2024
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Apr 2, 2024
Deprecated `InternalPixelPointerType`, which appears unused and untested anyway.

Follow-up to pull request InsightSoftwareConsortium#4538
commit f44304d
"STYLE: FUTURE_LEGACY_REMOVE BoundaryConditionPointerType type aliases"
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Apr 2, 2024
Follow-up to pull request InsightSoftwareConsortium#4538
commit f44304d
"STYLE: FUTURE_LEGACY_REMOVE BoundaryConditionPointerType type aliases"
N-Dekker added a commit to N-Dekker/ITK that referenced this pull request Apr 2, 2024
Deprecated `DiscreteGaussianImageFilter::InputBoundaryConditionPointerType`.

Follow-up to pull request InsightSoftwareConsortium#4538
commit f44304d
"STYLE: FUTURE_LEGACY_REMOVE BoundaryConditionPointerType type aliases"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Filtering Issues affecting the Filtering module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants