# Change Constness Of itk::Transform::UpdateTransformParameters

Michael Stauffer
2012-06-26
Change 1st parameter ('update') of UpdateTransformParameters to const.

Change Transform::UpdateTransformParameters, ObjectToObjectMetricBase::UpdateTransformParameters, and overrides in derived classes.

The vast majority of code is unaffected. Only user-derived classes that override UpdateTransformParameters and modify the first parameter or pass it as a non-const parameter will need updating.

void MyTransform::UpdateTransformParameters( DerivativeType & update, ScalarType factor = 1.0 );
void MyTransform::UpdateTransformParameters( const DerivativeType & update, ScalarType factor = 1.0 );
Iab65639119d34997efd04ff3d2f976294c638eb7
Modules/Core/Transform/include/itkBSplineBaseTransform.h Modules/Core/Transform/include/itkBSplineBaseTransform.hxx Modules/Core/Transform/include/itkCompositeTransform.h Modules/Core/Transform/include/itkCompositeTransform.hxx Modules/Core/Transform/include/itkTransform.h Modules/Core/Transform/include/itkTransform.hxx Modules/Filtering/DisplacementField/include/itkBSplineSmoothingOnUpdateDisplacementFieldTransform.h Modules/Filtering/DisplacementField/include/itkBSplineSmoothingOnUpdateDisplacementFieldTransform.hxx Modules/Filtering/DisplacementField/include/itkDisplacementFieldTransform.h Modules/Filtering/DisplacementField/include/itkDisplacementFieldTransform.hxx Modules/Filtering/DisplacementField/include/itkGaussianSmoothingOnUpdateDisplacementFieldTransform.h Modules/Filtering/DisplacementField/include/itkGaussianSmoothingOnUpdateDisplacementFieldTransform.hxx Modules/Filtering/DisplacementField/include/itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.h Modules/Filtering/DisplacementField/include/itkGaussianSmoothingOnUpdateTimeVaryingVelocityFieldTransform.hxx Modules/Filtering/DisplacementField/include/itkTimeVaryingBSplineVelocityFieldTransform.h Modules/Filtering/DisplacementField/include/itkTimeVaryingBSplineVelocityFieldTransform.hxx Modules/Filtering/DisplacementField/include/itkTimeVaryingVelocityFieldTransform.h Modules/Filtering/DisplacementField/include/itkTimeVaryingVelocityFieldTransform.hxx Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetric.h Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetric.hxx Modules/Numerics/Optimizersv4/include/itkObjectToObjectMetricBase.h Modules/Numerics/Optimizersv4/test/itkConjugateGradientLineSearchOptimizerv4Test.cxx Modules/Numerics/Optimizersv4/test/itkGradientDescentLineSearchOptimizerv4Test.cxx Modules/Numerics/Optimizersv4/test/itkGradientDescentOptimizerBasev4Test.cxx Modules/Numerics/Optimizersv4/test/itkGradientDescentOptimizerv4Test.cxx Modules/Numerics/Optimizersv4/test/itkGradientDescentOptimizerv4Test2.cxx Modules/Numerics/Optimizersv4/test/itkMultiGradientOptimizerv4Test.cxx Modules/Numerics/Optimizersv4/test/itkMultiStartOptimizerv4Test.cxx Modules/Numerics/Optimizersv4/test/itkObjectToObjectMetricBaseTest.cxx Modules/Numerics/Optimizersv4/test/itkObjectToObjectOptimizerBaseTest.cxx Modules/Numerics/Optimizersv4/test/itkRegistrationParameterScalesEstimatorTest.cxx Modules/Numerics/Optimizersv4/test/itkRegistrationParameterScalesFromIndexShiftTest.cxx Modules/Numerics/Optimizersv4/test/itkRegistrationParameterScalesFromJacobianTest.cxx Modules/Numerics/Optimizersv4/test/itkRegistrationParameterScalesFromPhysicalShiftTest.cxx
UpdateTransformParameters( DerivativeType
UpdateTransformParameters( const DerivativeType