From 49f5d54eb31b27755ede16705006c242d0ae2a7e Mon Sep 17 00:00:00 2001 From: Jon Haitz Legarreta Date: Sat, 14 Apr 2018 19:05:02 +0200 Subject: [PATCH] COMP: Move ITK_DISALLOW_COPY_AND_ASSIGN calls to public section. Move `ITK_DISALLOW_COPY_AND_ASSIGN` calls to public section following the discussion in https://discourse.itk.org/t/noncopyable If legacy (pre-macro) copy and assing methods existed, subsitute them for the `ITK_DISALLOW_COPY_AND_ASSIGN` macro. --- include/itkMorphologicalContourInterpolator.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/itkMorphologicalContourInterpolator.h b/include/itkMorphologicalContourInterpolator.h index 37d1b33..2ec9ed9 100644 --- a/include/itkMorphologicalContourInterpolator.h +++ b/include/itkMorphologicalContourInterpolator.h @@ -69,6 +69,8 @@ class MorphologicalContourInterpolator: friend class MorphologicalContourInterpolatorParallelInvoker; public: + ITK_DISALLOW_COPY_AND_ASSIGN(MorphologicalContourInterpolator); + /** Standard class type alias. */ using Self = MorphologicalContourInterpolator; using Superclass = ImageToImageFilter< TImage, TImage >; @@ -401,11 +403,6 @@ class MorphologicalContourInterpolator: using ConnectedComponentsType = ConnectedComponentImageFilter< BoolSliceType, SliceType >; typename ConnectedComponentsType::Pointer m_ConnectedComponents; - -private: - MorphologicalContourInterpolator( const Self & ) = delete; - void - operator=( const Self & ) = delete; }; } // namespace itk