diff --git a/Modules/Core/Common/include/itkVersor.h b/Modules/Core/Common/include/itkVersor.h index 175e761dc1c..5763fcfdaf1 100644 --- a/Modules/Core/Common/include/itkVersor.h +++ b/Modules/Core/Common/include/itkVersor.h @@ -110,7 +110,7 @@ class ITK_TEMPLATE_EXPORT Versor /** Default constructor creates a null versor * (representing 0 degrees rotation). */ - Versor(); + Versor() = default; /** Copy constructor. */ Versor(const Self & v); @@ -326,16 +326,16 @@ class ITK_TEMPLATE_EXPORT Versor } /** Component parallel to x axis. */ - ValueType m_X; + ValueType m_X{}; /** Component parallel to y axis. */ - ValueType m_Y; + ValueType m_Y{}; /** Component parallel to z axis. */ - ValueType m_Z; + ValueType m_Z{}; /** Escalar component of the Versor. */ - ValueType m_W; + ValueType m_W{ NumericTraits::OneValue() }; }; template diff --git a/Modules/Core/Common/include/itkVersor.hxx b/Modules/Core/Common/include/itkVersor.hxx index f25d6779a25..1aab8803197 100644 --- a/Modules/Core/Common/include/itkVersor.hxx +++ b/Modules/Core/Common/include/itkVersor.hxx @@ -24,14 +24,6 @@ namespace itk { -template -Versor::Versor() - : m_X(NumericTraits::ZeroValue()) - , m_Y(NumericTraits::ZeroValue()) - , m_Z(NumericTraits::ZeroValue()) - , m_W(NumericTraits::OneValue()) -{} - template Versor::Versor(const Self & v) {