Skip to content

Commit

Permalink
BUG: Fix name returned by GetNameOfClass() in Optimizer tests
Browse files Browse the repository at this point in the history
Fixed the class names returned by the `GetNameOfClass()` member functions of
`amoebaTestF2` (from "itkAmoebaOptimizerTest") and `LBFGSCostFunction` (from
"itkLBFGSOptimizerTest"), by passing the correct class name to
`itkOverrideGetNameOfClassMacro`.
  • Loading branch information
N-Dekker authored and hjmjohnson committed Jan 2, 2024
1 parent 038c739 commit 4ee0617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ class amoebaTestF2 : public itk::SingleValuedCostFunction
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkOverrideGetNameOfClassMacro(amoebaTestF1);
itkOverrideGetNameOfClassMacro(amoebaTestF2);

using ParametersType = Superclass::ParametersType;
using MeasureType = Superclass::MeasureType;
Expand Down
2 changes: 1 addition & 1 deletion Modules/Numerics/Optimizers/test/itkLBFGSOptimizerTest.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LBFGSCostFunction : public itk::SingleValuedCostFunction
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkOverrideGetNameOfClassMacro(LBFCostFunction);
itkOverrideGetNameOfClassMacro(LBFGSCostFunction);

enum
{
Expand Down

0 comments on commit 4ee0617

Please sign in to comment.