diff --git a/Modules/Core/Common/include/itkImageBoundaryCondition.h b/Modules/Core/Common/include/itkImageBoundaryCondition.h index efc2e490953..8cf4c14153d 100644 --- a/Modules/Core/Common/include/itkImageBoundaryCondition.h +++ b/Modules/Core/Common/include/itkImageBoundaryCondition.h @@ -79,11 +79,7 @@ class ITK_TEMPLATE_EXPORT ImageBoundaryCondition ImageBoundaryCondition() = default; /** Runtime information support. */ - virtual const char * - GetNameOfClass() const - { - return "itkImageBoundaryCondition"; - } + itkTypeMacroNoParent(ImageBoundaryCondition); /** Utility for printing the boundary condition. */ virtual void