Skip to content

Commit

Permalink
STYLE: Default default-constructor of VariableLengthVector
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Dekker committed Feb 16, 2023
1 parent bb4e915 commit 1bef6df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Modules/Core/Common/include/itkVariableLengthVector.h
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class ITK_TEMPLATE_EXPORT VariableLengthVector
* \post \c m_NumElements is 0
* \post \c m_LetArrayManageMemory is true
*/
VariableLengthVector();
VariableLengthVector() = default;

/** Constructor with size.
* Size can only be changed by assignment, \c SetSize() or \c Reserve().
Expand Down Expand Up @@ -978,7 +978,7 @@ class ITK_TEMPLATE_EXPORT VariableLengthVector
private:
bool m_LetArrayManageMemory{ true }; // if true, the array is responsible
// for memory of data
TValue * m_Data; // Array to hold data
TValue * m_Data{}; // Array to hold data
ElementIdentifier m_NumElements{ 0 };
};

Expand Down
6 changes: 0 additions & 6 deletions Modules/Core/Common/include/itkVariableLengthVector.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
namespace itk
{

template <typename TValue>
VariableLengthVector<TValue>::VariableLengthVector()
: m_Data(nullptr)

{}

template <typename TValue>
VariableLengthVector<TValue>::VariableLengthVector(unsigned int length)
: m_Data(nullptr)
Expand Down

0 comments on commit 1bef6df

Please sign in to comment.