Skip to content

Commit

Permalink
STYLE: Default default-constructor of Versor
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Dekker authored and dzenanz committed Feb 23, 2023
1 parent 74a55f9 commit 1b5da45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
10 changes: 5 additions & 5 deletions Modules/Core/Common/include/itkVersor.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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<T>::OneValue() };
};

template <typename T>
Expand Down
8 changes: 0 additions & 8 deletions Modules/Core/Common/include/itkVersor.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@

namespace itk
{
template <typename T>
Versor<T>::Versor()
: m_X(NumericTraits<T>::ZeroValue())
, m_Y(NumericTraits<T>::ZeroValue())
, m_Z(NumericTraits<T>::ZeroValue())
, m_W(NumericTraits<T>::OneValue())
{}

template <typename T>
Versor<T>::Versor(const Self & v)
{
Expand Down

0 comments on commit 1b5da45

Please sign in to comment.