Skip to content

Commit

Permalink
BUG: Fix superclass name in itkTypeMacro
Browse files Browse the repository at this point in the history
Fix superclass name in `itkTypeMacro`.

Fixes:
```
Name of Class = Logger
Name of Superclass = LoggerBase
Class name is correct
Superclass name provided does not match object's Superclass::NameOfClass
```

and
```
Name of Class = TransformFileReaderTemplate
Name of Superclass = Object
Class name is correct
Superclass name provided does not match object's Superclass::NameOfClass
```

raised for example in:
https://dev.azure.com/itkrobotwindow/ITK.Windows/_build/results?buildId=7533&view=logs&j=2d2b3007-3c5c-5840-9bb0-2b1ea49925f3&t=77aad734-2057-5694-9ae2-ee1f5f26eae8&l=45617
and
https://dev.azure.com/itkrobotwindow/ITK.Windows/_build/results?buildId=7533&view=logs&j=2d2b3007-3c5c-5840-9bb0-2b1ea49925f3&t=77aad734-2057-5694-9ae2-ee1f5f26eae8&l=120728
  • Loading branch information
jhlegarreta authored and dzenanz committed Jan 12, 2022
1 parent 6a1575d commit 007970e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Modules/Core/Common/include/itkLogger.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class ITKCommon_EXPORT Logger : public LoggerBase
using ConstPointer = SmartPointer<const Self>;

/** Run-time type information (and related methods). */
itkTypeMacro(Logger, Object);
itkTypeMacro(Logger, LoggerBase);

/** New macro for creation of through a Smart Pointer */
itkNewMacro(Self);
Expand Down
2 changes: 1 addition & 1 deletion Modules/IO/TransformBase/include/itkTransformFileReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class ITK_TEMPLATE_EXPORT TransformFileReaderTemplate : public LightProcessObjec

/** SmartPointer type alias support */
using Self = TransformFileReaderTemplate;
using Superclass = LightProcessObject;
using Pointer = SmartPointer<Self>;
using TransformType = TransformBaseTemplate<TParametersValueType>;

Expand All @@ -57,7 +58,6 @@ class ITK_TEMPLATE_EXPORT TransformFileReaderTemplate : public LightProcessObjec
itkNewMacro(Self);

/** Run-time type information (and related methods). */
using Superclass = Object;
itkTypeMacro(TransformFileReaderTemplate, LightProcessObject);

/** Set the filename */
Expand Down

0 comments on commit 007970e

Please sign in to comment.