diff --git a/Modules/Core/Common/include/itkArray.h b/Modules/Core/Common/include/itkArray.h index 144931b34ad..28a5d03829b 100644 --- a/Modules/Core/Common/include/itkArray.h +++ b/Modules/Core/Common/include/itkArray.h @@ -115,10 +115,10 @@ class ITK_TEMPLATE_EXPORT Array : public vnl_vector } /** Copy operator */ - const Self & + Self & operator=(const Self & rhs); - const Self & + Self & operator=(const VnlVectorType & rhs); /** Return the number of elements in the Array */ diff --git a/Modules/Core/Common/include/itkArray.hxx b/Modules/Core/Common/include/itkArray.hxx index 0993c034c8d..78f7be15fa7 100644 --- a/Modules/Core/Common/include/itkArray.hxx +++ b/Modules/Core/Common/include/itkArray.hxx @@ -148,7 +148,7 @@ Array::SetSize(SizeValueType sz) template auto -Array::operator=(const Self & rhs) -> const Self & +Array::operator=(const Self & rhs) -> Self & { if (this != &rhs) { @@ -167,7 +167,7 @@ Array::operator=(const Self & rhs) -> const Self & template auto -Array::operator=(const VnlVectorType & rhs) -> const Self & +Array::operator=(const VnlVectorType & rhs) -> Self & { if (this != &rhs) { diff --git a/Modules/Core/Common/include/itkArray2D.h b/Modules/Core/Common/include/itkArray2D.h index 2d5b5c9dc83..646f5b22294 100644 --- a/Modules/Core/Common/include/itkArray2D.h +++ b/Modules/Core/Common/include/itkArray2D.h @@ -55,10 +55,10 @@ class ITK_TEMPLATE_EXPORT Array2D : public vnl_matrix Array2D(const Self & array); Array2D(const VnlMatrixType & matrix); - const Self & + Self & operator=(const Self & array); - const Self & + Self & operator=(const VnlMatrixType & matrix); void diff --git a/Modules/Core/Common/include/itkArray2D.hxx b/Modules/Core/Common/include/itkArray2D.hxx index eada932f1a0..3d3494a98eb 100644 --- a/Modules/Core/Common/include/itkArray2D.hxx +++ b/Modules/Core/Common/include/itkArray2D.hxx @@ -42,7 +42,7 @@ Array2D::Array2D(const Self & array) /** Assignment Operator from Array */ template -const Array2D & +Array2D & Array2D::operator=(const Self & array) { this->VnlMatrixType::operator=(array); @@ -51,7 +51,7 @@ Array2D::operator=(const Self & array) /** Assignment Operator from vnl_matrix */ template -const Array2D & +Array2D & Array2D::operator=(const VnlMatrixType & matrix) { this->VnlMatrixType::operator=(matrix); diff --git a/Modules/Core/Common/include/itkMatrix.h b/Modules/Core/Common/include/itkMatrix.h index 64f09537ce9..a16e877e79c 100644 --- a/Modules/Core/Common/include/itkMatrix.h +++ b/Modules/Core/Common/include/itkMatrix.h @@ -211,7 +211,7 @@ class ITK_TEMPLATE_EXPORT Matrix } /** Assignment operator. */ - inline const Self & + inline Self & operator=(const vnl_matrix & matrix) { m_Matrix = matrix; @@ -247,7 +247,7 @@ class ITK_TEMPLATE_EXPORT Matrix ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self); - inline const Self & + inline Self & operator=(const InternalMatrixType & matrix) { this->m_Matrix = matrix; diff --git a/Modules/Core/Common/include/itkOptimizerParameters.h b/Modules/Core/Common/include/itkOptimizerParameters.h index 53fcb9c3bc8..4c46031ab9b 100644 --- a/Modules/Core/Common/include/itkOptimizerParameters.h +++ b/Modules/Core/Common/include/itkOptimizerParameters.h @@ -154,7 +154,7 @@ class ITK_TEMPLATE_EXPORT OptimizerParameters : public Array & matrix) { m_Matrix = matrix; @@ -189,7 +189,7 @@ class ITK_TEMPLATE_EXPORT VariableSizeMatrix ITK_UNEQUAL_OPERATOR_MEMBER_FUNCTION(Self); /** Assignment operator. */ - inline const Self & + inline Self & operator=(const Self & matrix) { m_Matrix = matrix.m_Matrix; diff --git a/Modules/Core/Common/include/itkVersor.h b/Modules/Core/Common/include/itkVersor.h index 9746ed6ad1f..beaa154b165 100644 --- a/Modules/Core/Common/include/itkVersor.h +++ b/Modules/Core/Common/include/itkVersor.h @@ -116,7 +116,7 @@ class ITK_TEMPLATE_EXPORT Versor Versor(const Self & v); /** Assignment operator =. Copy the versor argument. */ - const Self & + Self & operator=(const Self & v); /** Composition operator *=. Compose the current versor diff --git a/Modules/Core/Common/include/itkVersor.hxx b/Modules/Core/Common/include/itkVersor.hxx index 0abdc071717..1e17b408f7f 100644 --- a/Modules/Core/Common/include/itkVersor.hxx +++ b/Modules/Core/Common/include/itkVersor.hxx @@ -45,7 +45,7 @@ Versor::Versor(const Self & v) /** Assignment Operator */ template -const Versor & +Versor & Versor::operator=(const Self & v) { m_X = v.m_X; diff --git a/Modules/Filtering/FastMarching/include/itkFastMarchingImageFilter.h b/Modules/Filtering/FastMarching/include/itkFastMarchingImageFilter.h index e699098fffc..b31c74ba97a 100644 --- a/Modules/Filtering/FastMarching/include/itkFastMarchingImageFilter.h +++ b/Modules/Filtering/FastMarching/include/itkFastMarchingImageFilter.h @@ -179,7 +179,7 @@ class ITK_TEMPLATE_EXPORT FastMarchingImageFilter : public ImageToImageFilterNodeType::operator=(node);