From a4693b507480159c572ba3c0297ab0c12ea5a3ce Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Sun, 19 Sep 2021 14:27:43 +0200 Subject: [PATCH] STYLE: Improve const-correctness of protected CompositeTransform members - Added `const` to reference returned by `GetTransformsToOptimizeQueue()` - Made `m_TransformsToOptimizeFlags` non-`mutable` --- Modules/Core/Transform/include/itkCompositeTransform.h | 6 +++--- Modules/Core/Transform/include/itkCompositeTransform.hxx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Modules/Core/Transform/include/itkCompositeTransform.h b/Modules/Core/Transform/include/itkCompositeTransform.h index 33c1f624d6e..f0709077ffe 100644 --- a/Modules/Core/Transform/include/itkCompositeTransform.h +++ b/Modules/Core/Transform/include/itkCompositeTransform.h @@ -447,11 +447,11 @@ class ITK_TEMPLATE_EXPORT CompositeTransform : public MultiTransform::UpdateTransformParameters template -typename CompositeTransform::TransformQueueType & +const typename CompositeTransform::TransformQueueType & CompositeTransform::GetTransformsToOptimizeQueue() const { /* Update the list of transforms to use for optimization only if