Skip to content

Commit

Permalink
COMP: Use C++11 override directly.
Browse files Browse the repository at this point in the history
Use C++11 override directly.
  • Loading branch information
jhlegarreta committed Mar 17, 2019
1 parent 4f4f187 commit cb34dc6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions include/itkMetamorphosisImageRegistrationMethodv4.h
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ public TimeVaryingVelocityFieldImageRegistrationMethodv4<TFixedImage, TMovingIma
FieldPointer GetMetricDerivative(FieldPointer field, bool useImageGradients);
void UpdateControls();
void StartOptimization();
void GenerateData();
void PrintSelf(std::ostream& os, Indent indent) const;
void GenerateData() override;
void PrintSelf(std::ostream& os, Indent indent) const override;

private:
MetamorphosisImageRegistrationMethodv4(const Self&); // Intentionally not implemened
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ class TimeVaryingVelocityFieldSemiLagrangianIntegrationImageFilter :
TimeVaryingVelocityFieldSemiLagrangianIntegrationImageFilter();
~TimeVaryingVelocityFieldSemiLagrangianIntegrationImageFilter();

void PrintSelf( std::ostream & os, Indent indent ) const ITK_OVERRIDE;
virtual void BeforeThreadedGenerateData() ITK_OVERRIDE;
virtual void ThreadedGenerateData( const OutputRegionType &, ThreadIdType ) ITK_OVERRIDE;
void PrintSelf( std::ostream & os, Indent indent ) const override;
void BeforeThreadedGenerateData() override;
void ThreadedGenerateData( const OutputRegionType &, ThreadIdType ) override;
VectorType IntegrateVelocityAtPoint( const PointType &initialSpatialPoint, const TimeVaryingVelocityFieldType * inputField );

DisplacementFieldExtrapolatorPointer m_DisplacementFieldExtrapolator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ class TimeVaryingVelocityFieldSemiLagrangianTransform :

/** Trigger the computation of the displacement field by integrating
* the time-varying velocity field. */
virtual void IntegrateVelocityField() ITK_OVERRIDE;
void IntegrateVelocityField() override;
itkBooleanMacro(UseInverse);
itkSetMacro(UseInverse, bool);
itkGetConstMacro(UseInverse, bool);
Expand Down
8 changes: 4 additions & 4 deletions include/itkWrapExtrapolateImageFunction.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class WrapExtrapolateImageFunction:
* Returns the extrapolated image intensity at a
* specified position
*/
virtual OutputType EvaluateAtContinuousIndex(
OutputType EvaluateAtContinuousIndex(
const ContinuousIndexType & index) const ITK_OVERRIDE
{

Expand Down Expand Up @@ -129,8 +129,8 @@ class WrapExtrapolateImageFunction:
* Returns the extrapolated image intensity at a
* specified position.
*/
virtual OutputType EvaluateAtIndex(
const IndexType & index) const ITK_OVERRIDE
OutputType EvaluateAtIndex(
const IndexType & index) const override
{
IndexType nindex;

Expand All @@ -156,7 +156,7 @@ class WrapExtrapolateImageFunction:
WrapExtrapolateImageFunction()
{ m_Interpolator = dynamic_cast<InterpolatorType*>(LinearInterpolatorType::New().GetPointer()); }
~WrapExtrapolateImageFunction(){}
void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE
void PrintSelf(std::ostream & os, Indent indent) const override
{
Superclass::PrintSelf(os, indent);
os << indent << "Interpolator: " << this->m_Interpolator << std::endl;
Expand Down

0 comments on commit cb34dc6

Please sign in to comment.