Skip to content

Commit

Permalink
COMP: Fix inconsistent/missing override warnings
Browse files Browse the repository at this point in the history
Sample message:

/Users/svc-dashboard/D/ITKNornir/include/IROptimizerObserver.h:52:8: warning: 'Execute' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
  void Execute(itk::Object *caller, const itk::EventObject & event)
  • Loading branch information
dzenanz committed Aug 29, 2024
1 parent 81da411 commit c16b67f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/IROptimizerObserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ class optimizer_observer_t : public itk::Command

itkNewMacro(Self);

void Execute(itk::Object *caller, const itk::EventObject & event)
void Execute(itk::Object *caller, const itk::EventObject & event) override
{ Execute((const itk::Object *)(caller), event); }

void Execute(const itk::Object * object, const itk::EventObject & event)
void Execute(const itk::Object * object, const itk::EventObject & event) override
{
if (typeid(event) != typeid(itk::IterationEvent)) return;

Expand Down

0 comments on commit c16b67f

Please sign in to comment.