Skip to content

Commit

Permalink
STYLE: ImageSourceCommonGlobals default member initializer, Rule of Zero
Browse files Browse the repository at this point in the history
Added an in-class default member initializer to the data member of
`ImageSourceCommonGlobals`. Removed its default-constructor, following the C++
"Rule of Zero".
  • Loading branch information
N-Dekker authored and dzenanz committed Aug 23, 2023
1 parent 434eacc commit c6690b9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Modules/Core/Common/src/itkImageSourceCommon.cxx
Expand Up @@ -25,9 +25,7 @@ namespace itk

struct ImageSourceCommonGlobals
{
ImageSourceCommonGlobals() { m_GlobalDefaultSplitter = ImageRegionSplitterSlowDimension::New().GetPointer(); };

ImageRegionSplitterBase::Pointer m_GlobalDefaultSplitter;
ImageRegionSplitterBase::Pointer m_GlobalDefaultSplitter{ ImageRegionSplitterSlowDimension::New().GetPointer() };
};

itkGetGlobalSimpleMacro(ImageSourceCommon, ImageSourceCommonGlobals, PimplGlobals);
Expand Down

0 comments on commit c6690b9

Please sign in to comment.