Skip to content

Commit 130559d

Browse files
committed
STYLE: Use default member initialization
Converts a default constructor’s member initializers into the new default member initializers in C++11. Other member initializers that match the default member initializer are removed. This can reduce repeated code or allow use of ‘= default’.
1 parent 5a46ecd commit 130559d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

include/itkDigitizerFunctor.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ class Digitizer
3434
using MaskPixelType = TInput1;
3535

3636
Digitizer()
37-
: m_NumberOfBinsPerAxis(256)
38-
, m_MaskValue(1)
37+
: m_MaskValue(1)
3938
, m_Min(NumericTraits<PixelType>::min())
4039
, m_Max(NumericTraits<PixelType>::max())
4140
{}
@@ -80,7 +79,7 @@ class Digitizer
8079
}
8180
}
8281

83-
unsigned int m_NumberOfBinsPerAxis;
82+
unsigned int m_NumberOfBinsPerAxis{ 256 };
8483

8584
MaskPixelType m_MaskValue;
8685

0 commit comments

Comments
 (0)