Skip to content

Commit

Permalink
ENH: Prefer using the itkTypeMacroNoParent macro for RTTI
Browse files Browse the repository at this point in the history
Prefer using the `itkTypeMacroNoParent` macro for the RTTI of classes
not having an ancestor to provide the necessary information, including
the class name.
  • Loading branch information
jhlegarreta authored and dzenanz committed Apr 17, 2022
1 parent 7c26965 commit 748280c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Modules/Core/Common/include/itkImageBoundaryCondition.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 748280c

Please sign in to comment.