Skip to content

Commit f13be43

Browse files
committed
STYLE: Add itkVirtualGetNameOfClassMacro + itkOverrideGetNameOfClassMacro
Added two new macro's, intended to replace the old 'itkTypeMacro' and 'itkTypeMacroNoParent'. The main aim is to be clearer about what those macro's do: add a virtual 'GetNameOfClass()' member function and override it. Unlike 'itkTypeMacro', 'itkOverrideGetNameOfClassMacro' does not have a 'superclass' parameter, as it was not used anyway. Note that originally 'itkTypeMacro' did not use its 'superclass' parameter either, looking at commit 699b66cb04d410e555656828e8892107add38ccb, Will Schroeder, June 27, 2001: https://github.com/InsightSoftwareConsortium/ITK/blob/699b66cb04d410e555656828e8892107add38ccb/Code/Common/itkMacro.h#L331-L337
1 parent 7ad650a commit f13be43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/itkFixedPointInverseDisplacementFieldImageFilter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class ITK_TEMPLATE_EXPORT FixedPointInverseDisplacementFieldImageFilter
7171
itkNewMacro(Self);
7272

7373
/** Run-time type information (and related methods). */
74-
itkTypeMacro(FixedPointInverseDisplacementFieldImageFilter, ImageToImageFilter);
74+
itkOverrideGetNameOfClassMacro(FixedPointInverseDisplacementFieldImageFilter);
7575

7676

7777
/** Some type alias. */

0 commit comments

Comments
 (0)