diff --git a/Modules/Registration/Metricsv4/test/itkEuclideanDistancePointSetMetricRegistrationTest.cxx b/Modules/Registration/Metricsv4/test/itkEuclideanDistancePointSetMetricRegistrationTest.cxx index 9a8f58ecb38..da3809a81dc 100644 --- a/Modules/Registration/Metricsv4/test/itkEuclideanDistancePointSetMetricRegistrationTest.cxx +++ b/Modules/Registration/Metricsv4/test/itkEuclideanDistancePointSetMetricRegistrationTest.cxx @@ -258,15 +258,13 @@ itkEuclideanDistancePointSetMetricRegistrationTest(int argc, char * argv[]) FieldType::SpacingType spacing; spacing.Fill(static_cast(1.0)); - FieldType::DirectionType direction; - direction.Fill(static_cast(0.0)); + FieldType::DirectionType direction{}; for (unsigned int d = 0; d < Dimension; ++d) { direction[d][d] = static_cast(1.0); } - FieldType::PointType origin; - origin.Fill(static_cast(0.0)); + FieldType::PointType origin{}; auto regionSize = RegionType::SizeType::Filled(static_cast(pointMax) + 1); @@ -280,8 +278,7 @@ itkEuclideanDistancePointSetMetricRegistrationTest(int argc, char * argv[]) displacementField->SetSpacing(spacing); displacementField->SetRegions(region); displacementField->Allocate(); - DisplacementFieldTransformType::OutputVectorType zeroVector; - zeroVector.Fill(static_cast(0.0)); + DisplacementFieldTransformType::OutputVectorType zeroVector{}; displacementField->FillBuffer(zeroVector); displacementTransform->SetDisplacementField(displacementField);