Skip to content

Commit

Permalink
STYLE: Use override statements for C++11
Browse files Browse the repository at this point in the history
Describe function overrides using the override
keyword from C++11.

SRCDIR= #My local SRC
BLDDIR= #My local BLD

cd
run-clang-tidy.py -extra-arg=-D__clang__ -checks=-*,modernize-use-override  -header-filter=.* -fix
  • Loading branch information
hjmjohnson committed Feb 20, 2020
1 parent 8577cdf commit e7d54eb
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion include/itkMaxPhaseCorrelationOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ITK_TEMPLATE_EXPORT MaxPhaseCorrelationOptimizer

protected:
MaxPhaseCorrelationOptimizer() = default;
virtual ~MaxPhaseCorrelationOptimizer() = default;
~MaxPhaseCorrelationOptimizer() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;

Expand Down
2 changes: 1 addition & 1 deletion include/itkPhaseCorrelationImageRegistrationMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class ITK_TEMPLATE_EXPORT PhaseCorrelationImageRegistrationMethod : public Proce

protected:
PhaseCorrelationImageRegistrationMethod();
virtual ~PhaseCorrelationImageRegistrationMethod(){};
~PhaseCorrelationImageRegistrationMethod() override{};
void
PrintSelf(std::ostream & os, Indent indent) const override;

Expand Down
2 changes: 1 addition & 1 deletion include/itkPhaseCorrelationOperator.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class ITK_TEMPLATE_EXPORT PhaseCorrelationOperator

protected:
PhaseCorrelationOperator();
virtual ~PhaseCorrelationOperator(){};
~PhaseCorrelationOperator() override{};
void
PrintSelf(std::ostream & os, Indent indent) const override;

Expand Down
2 changes: 1 addition & 1 deletion include/itkPhaseCorrelationOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class ITK_TEMPLATE_EXPORT PhaseCorrelationOptimizer : public ProcessObject

protected:
PhaseCorrelationOptimizer();
virtual ~PhaseCorrelationOptimizer(){};
~PhaseCorrelationOptimizer() override{};
void
PrintSelf(std::ostream & os, Indent indent) const override;

Expand Down
2 changes: 1 addition & 1 deletion include/itkTileMergeImageFilter.h
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ class ITK_TEMPLATE_EXPORT TileMergeImageFilter

protected:
TileMergeImageFilter();
virtual ~TileMergeImageFilter() = default;
~TileMergeImageFilter() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;

Expand Down
2 changes: 1 addition & 1 deletion include/itkTileMontage.h
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ class ITK_TEMPLATE_EXPORT TileMontage : public ProcessObject

protected:
TileMontage();
virtual ~TileMontage(){};
~TileMontage() override{};
void
PrintSelf(std::ostream & os, Indent indent) const override;

Expand Down
2 changes: 1 addition & 1 deletion test/itkInMemoryMontageTestHelper.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class ITK_TEMPLATE_EXPORT InMemoryMontageTest : public itk::Object
{
public:
InMemoryMontageTest() = default;
~InMemoryMontageTest() = default;
~InMemoryMontageTest() override = default;

ITK_DISALLOW_COPY_AND_ASSIGN(InMemoryMontageTest);

Expand Down

0 comments on commit e7d54eb

Please sign in to comment.