Skip to content

Commit

Permalink
STYLE: Use the superclass name in itkTypeMacro
Browse files Browse the repository at this point in the history
Use the superclass name instead of the `Superclass` alias in
`itkTypeMacro`.
  • Loading branch information
jhlegarreta authored and dzenanz committed Jan 11, 2022
1 parent 8350f9c commit 6a1575d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ITK_TEMPLATE_EXPORT MultiGradientOptimizerv4Template
using ConstPointer = SmartPointer<const Self>;

/** Run-time type information (and related methods). */
itkTypeMacro(MultiGradientOptimizerv4Template, Superclass);
itkTypeMacro(MultiGradientOptimizerv4Template, GradientDescentOptimizerv4Template);

/** Method for creation through the object factory. */
itkNewMacro(Self);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*
*=========================================================================*/
#include "itkMultiGradientOptimizerv4.h"
#include "itkTestingMacros.h"

/**
* \class MultiGradientOptimizerv4TestMetric
Expand Down Expand Up @@ -329,6 +330,9 @@ itkMultiGradientOptimizerv4Test(int, char *[])
// Declaration of a itkOptimizer
auto itkOptimizer = OptimizerType::New();

ITK_EXERCISE_BASIC_OBJECT_METHODS(itkOptimizer, MultiGradientOptimizerv4Template, GradientDescentOptimizerv4Template);


// Declaration of the Metric
auto metric = MultiGradientOptimizerv4TestMetric::New();
auto metric2 = MultiGradientOptimizerv4TestMetric2::New();
Expand Down

0 comments on commit 6a1575d

Please sign in to comment.