Skip to content

Commit

Permalink
COMP: Use modern macro for name of class
Browse files Browse the repository at this point in the history
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
│ +  itkOverrideGetNameOfClassMacro
  • Loading branch information
hjmjohnson committed Jan 25, 2025
1 parent 10b80f6 commit 12fc12b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/itkScancoImageIO.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class IOScanco_EXPORT ScancoImageIO : public ImageIOBase
itkNewMacro(Self);

/** Run-time type information (and related methods). */
itkTypeMacro(ScancoImageIO, ImageIOBase);
itkOverrideGetNameOfClassMacro(ScancoImageIO);

/** The different types of ImageIO's can support data of varying
* dimensionality. For example, some file formats are strictly 2D
Expand Down
2 changes: 1 addition & 1 deletion include/itkScancoImageIOFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class IOScanco_EXPORT ScancoImageIOFactory : public ObjectFactoryBase
itkFactorylessNewMacro(Self);

/** Run-time type information (and related methods). */
itkTypeMacro(ScancoImageIOFactory, ObjectFactoryBase);
itkOverrideGetNameOfClassMacro(ScancoImageIOFactory);

/** Register one factory of this type */
static void
Expand Down

0 comments on commit 12fc12b

Please sign in to comment.