From 30bbab2e22aca834e4d9f3ca8cd67e8390a9a394 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Thu, 24 Oct 2024 18:17:02 +0200 Subject: [PATCH] STYLE: Do not `Fill` empty `fixedParameters` in Transform test This local `fixedParameters` is of type `OptimizerParameters`. When it is just default-constructed, it is empty. An attempt to `Fill` an empty `OptimizerParameters` has no effect at all. --- .../Transform/test/itkRigid3DPerspectiveTransformTest.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Modules/Core/Transform/test/itkRigid3DPerspectiveTransformTest.cxx b/Modules/Core/Transform/test/itkRigid3DPerspectiveTransformTest.cxx index 6a2bfe713dd..4b6d18182da 100644 --- a/Modules/Core/Transform/test/itkRigid3DPerspectiveTransformTest.cxx +++ b/Modules/Core/Transform/test/itkRigid3DPerspectiveTransformTest.cxx @@ -72,9 +72,7 @@ itkRigid3DPerspectiveTransformTest(int, char *[]) ITK_TEST_SET_GET_VALUE(centerOfRotation, transform->GetCenterOfRotation()); // This transform has no fixed parameters; empty method body; called for coverage purposes - typename TransformType::FixedParametersType::ValueType fixedParametersValues = 0; - typename TransformType::FixedParametersType fixedParameters; - fixedParameters.Fill(fixedParametersValues); + const typename TransformType::FixedParametersType fixedParameters{}; transform->SetFixedParameters(fixedParameters); }