From df5dfa2423c9a9003e548c85781fe904ab9f9b32 Mon Sep 17 00:00:00 2001 From: Jon Haitz Legarreta Date: Sat, 14 Apr 2018 19:08:35 +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. --- ItkVtkGlue/itkImageToVTKImageFilter.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/ItkVtkGlue/itkImageToVTKImageFilter.h b/ItkVtkGlue/itkImageToVTKImageFilter.h index e93dee5..1bb6e4f 100644 --- a/ItkVtkGlue/itkImageToVTKImageFilter.h +++ b/ItkVtkGlue/itkImageToVTKImageFilter.h @@ -41,6 +41,8 @@ template class ImageToVTKImageFilter : public ProcessObject { public: + ITK_DISALLOW_COPY_AND_ASSIGN(ImageToVTKImageFilter); + /** Standard class type alias. */ using Self = ImageToVTKImageFilter; using Superclass = ProcessObject; @@ -86,9 +88,6 @@ class ImageToVTKImageFilter : public ProcessObject virtual ~ImageToVTKImageFilter(); private: - ImageToVTKImageFilter(const Self&); //purposely not implemented - void operator=(const Self&); //purposely not implemented - ExporterFilterPointer m_Exporter; vtkImageImport * m_Importer; };