Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

COMP: Use modern macro for name of class#42

Merged
hjmjohnson merged 1 commit intomainfrom
remove-legacy-macro-uses
Jan 25, 2025
Merged

COMP: Use modern macro for name of class#42
hjmjohnson merged 1 commit intomainfrom
remove-legacy-macro-uses

Conversation

@hjmjohnson
Copy link
Copy Markdown
Member

When preparing for the future with ITK by setting
ITK_FUTURE_LEGACY_REMOVE:BOOL=ON
ITK_LEGACY_REMOVEBOOL=ON

The future preferred macro should be used
│ - itkTypeMacro(MGHImageIOFactory, ObjectFactoryBase); │ + itkOverrideGetNameOfClassMacro(MGHImageIOFactory);

When preparing for the future with ITK by setting
 ITK_FUTURE_LEGACY_REMOVE:BOOL=ON
 ITK_LEGACY_REMOVEBOOL=ON

The future preferred macro should be used
│ -  itkTypeMacro(MGHImageIOFactory, ObjectFactoryBase);
│ +  itkOverrideGetNameOfClassMacro(MGHImageIOFactory);
@hjmjohnson hjmjohnson requested a review from dzenanz January 25, 2025 15:39
@hjmjohnson hjmjohnson self-assigned this Jan 25, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants