Skip to content

STYLE: Don't call static TypeAsString functions via instances (Examples)#5431

Merged
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:Examples-static-TypeAsString-member-function-calls
Jun 21, 2025
Merged

STYLE: Don't call static TypeAsString functions via instances (Examples)#5431
hjmjohnson merged 1 commit intoInsightSoftwareConsortium:masterfrom
N-Dekker:Examples-static-TypeAsString-member-function-calls

Conversation

@N-Dekker
Copy link
Contributor

Replaced function calls of the form instance->MemberFunction(x) with itk::T::MemberFunction(x), for the static member functions GetPixelTypeAsString and GetComponentTypeAsString, in Examples.

Follow-up to pull request #5391 commit 45e93bb

Replaced function calls of the form `instance->MemberFunction(x)` with
`itk::T::MemberFunction(x)`, for the static member functions
`GetPixelTypeAsString` and `GetComponentTypeAsString`, in Examples.

Follow-up to pull request InsightSoftwareConsortium#5391
commit 45e93bb
@github-actions github-actions bot added area:Examples Demonstration of the use of classes type:Style Style changes: no logic impact (indentation, comments, naming) labels Jun 21, 2025
@N-Dekker N-Dekker marked this pull request as ready for review June 21, 2025 21:04
@hjmjohnson hjmjohnson merged commit 42ff572 into InsightSoftwareConsortium:master Jun 21, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Examples Demonstration of the use of classes type:Style Style changes: no logic impact (indentation, comments, naming)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants