diff --git a/include/itkMGHImageIO.h b/include/itkMGHImageIO.h index a850d32..a3b3497 100644 --- a/include/itkMGHImageIO.h +++ b/include/itkMGHImageIO.h @@ -50,7 +50,7 @@ class MGHIO_EXPORT MGHImageIO : public ImageIOBase itkNewMacro(Self); /** Run-time type information (and related methods). */ - itkTypeMacro(MGHImageIO, ImageIOBase); + itkOverrideGetNameOfClassMacro(MGHImageIO); /*-------- This part of the interfaces deals with reading data. ----- */ diff --git a/include/itkMGHImageIOFactory.h b/include/itkMGHImageIOFactory.h index 85acd89..b9b3e28 100644 --- a/include/itkMGHImageIOFactory.h +++ b/include/itkMGHImageIOFactory.h @@ -52,7 +52,7 @@ class MGHIO_EXPORT MGHImageIOFactory : public ObjectFactoryBase itkFactorylessNewMacro(Self); /** Run-time type information (and related methods). */ - itkTypeMacro(MGHImageIOFactory, ObjectFactoryBase); + itkOverrideGetNameOfClassMacro(MGHImageIOFactory); /** Register one factory of this type */ static void