From 1b5da45dc706e6d6803b52740fa50e0e5e7705e9 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Fri, 17 Feb 2023 00:22:55 +0100 Subject: [PATCH] STYLE: Default default-constructor of Versor --- Modules/Core/Common/include/itkVersor.h | 10 +++++----- Modules/Core/Common/include/itkVersor.hxx | 8 -------- 2 files changed, 5 insertions(+), 13 deletions(-) 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) {