Skip to content

Commit dab1987

Browse files
N-Dekkerhjmjohnson
authored andcommitted
STYLE: Add constexpr to supportSize in BSplineDeformableTransform
`SizeType::Filled(SplineOrder + 1)` can be evaluated at compile-time.
1 parent 7b72f00 commit dab1987

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/Core/Transform/include/itkBSplineDeformableTransform.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ BSplineDeformableTransform<TParametersValueType, VDimension, VSplineOrder>::Comp
556556
// Zero all components of jacobian
557557
jacobian.SetSize(SpaceDimension, this->GetNumberOfParameters());
558558
jacobian.Fill(0.0);
559-
auto supportSize = SizeType::Filled(SplineOrder + 1);
559+
constexpr auto supportSize = SizeType::Filled(SplineOrder + 1);
560560

561561
ContinuousIndexType index =
562562
this->m_CoefficientImages[0]

0 commit comments

Comments
 (0)