Skip to content

Commit 4f38271

Browse files
jhlegarretadzenanz
authored andcommitted
BUG: Fix Superclass name in RTTI macro
Fix Superclass name in RTTI macro. Exercise the basic object methods.
1 parent 15d09d6 commit 4f38271

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Modules/IO/SpatialObjects/include/itkPolygonGroupSpatialObjectXMLFile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class ITK_TEMPLATE_EXPORT PolygonGroupSpatialObjectXMLFileWriter : public XMLWri
9999
itkNewMacro(Self);
100100

101101
/** Run-time type information (and related methods). */
102-
itkTypeMacro(PolygonGroupSpatialObjectXMLFileWriter, XMLWriterBase<GroupSpatialObjectType>);
102+
itkTypeMacro(PolygonGroupSpatialObjectXMLFileWriter, XMLWriterBase);
103103

104104
using GroupType = GroupSpatialObject<3>;
105105

Modules/Numerics/Statistics/include/itkGaussianMembershipFunction.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class ITK_TEMPLATE_EXPORT GaussianMembershipFunction : public MembershipFunction
6565
using ConstPointer = SmartPointer<const Self>;
6666

6767
/** Standard macros */
68-
itkTypeMacro(GaussianMembershipFunction, MembershipFunction);
68+
itkTypeMacro(GaussianMembershipFunction, MembershipFunctionBase);
6969
itkNewMacro(Self);
7070

7171
/** SmartPointer class for superclass */

Modules/Numerics/Statistics/test/itkGaussianMembershipFunctionTest.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
#include <iostream>
2020
#include "itkGaussianMembershipFunction.h"
21+
#include "itkTestingMacros.h"
2122

2223
int
2324
itkGaussianMembershipFunctionTest(int, char *[])
@@ -30,9 +31,8 @@ itkGaussianMembershipFunctionTest(int, char *[])
3031
using MeasurementVectorSizeType = MembershipFunctionType::MeasurementVectorSizeType;
3132

3233
auto function = MembershipFunctionType::New();
33-
std::cout << function->GetNameOfClass() << std::endl;
3434

35-
function->Print(std::cout);
35+
ITK_EXERCISE_BASIC_OBJECT_METHODS(function, GaussianMembershipFunction, MembershipFunctionBase);
3636

3737
function->SetMeasurementVectorSize(MeasurementVectorSize); // for code coverage
3838

0 commit comments

Comments
 (0)