From 9bd559054abb92a4f66993c646478838906499cc Mon Sep 17 00:00:00 2001 From: Ludovic Hussonnois <ludovic.hussonnois@c-s.fr> Date: Tue, 18 Apr 2017 16:08:46 +0200 Subject: [PATCH] REFAC: add ITK_DELETE_FUNCTION. --- Modules/Learning/Unsupervised/include/otbContingencyTable.h | 4 ++-- .../Unsupervised/include/otbContingencyTableCalculator.h | 4 ++-- .../Unsupervised/include/otbSharkKMeansMachineLearningModel.h | 4 ++-- .../include/otbSharkKMeansMachineLearningModelFactory.h | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Modules/Learning/Unsupervised/include/otbContingencyTable.h b/Modules/Learning/Unsupervised/include/otbContingencyTable.h index bb3414f754..e1facdfa44 100644 --- a/Modules/Learning/Unsupervised/include/otbContingencyTable.h +++ b/Modules/Learning/Unsupervised/include/otbContingencyTable.h @@ -144,8 +144,8 @@ protected: } private: - ContingencyTable(const Self &); //purposely not implemented - void operator=(const Self &); //purposely not implemented + ContingencyTable(const Self &) ITK_DELETE_FUNCTION; //purposely not implemented + void operator=(const Self &) ITK_DELETE_FUNCTION; //purposely not implemented static size_t GetLabelsMaximumLength(const LabelList& labels, size_t maxWidth) { diff --git a/Modules/Learning/Unsupervised/include/otbContingencyTableCalculator.h b/Modules/Learning/Unsupervised/include/otbContingencyTableCalculator.h index b8d8d924af..328696c4e3 100644 --- a/Modules/Learning/Unsupervised/include/otbContingencyTableCalculator.h +++ b/Modules/Learning/Unsupervised/include/otbContingencyTableCalculator.h @@ -87,8 +87,8 @@ protected: //void PrintSelf(std::ostream& os, itk::Indent indent) const ITK_OVERRIDE; private: - ContingencyTableCalculator(const Self &); //purposely not implemented - void operator=(const Self &); //purposely not implemented + ContingencyTableCalculator(const Self &) ITK_DELETE_FUNCTION; //purposely not implemented + void operator=(const Self &) ITK_DELETE_FUNCTION; //purposely not implemented MapOfClassesType m_LabelCount; unsigned long m_NumberOfRefClasses; diff --git a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h index 3084b2503e..22389a904b 100644 --- a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h +++ b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModel.h @@ -142,8 +142,8 @@ protected: void PrintSelf(std::ostream &os, itk::Indent indent) const; private: - SharkKMeansMachineLearningModel(const Self &); //purposely not implemented - void operator=(const Self &); //purposely not implemented + SharkKMeansMachineLearningModel(const Self &) ITK_DELETE_FUNCTION; //purposely not implemented + void operator=(const Self &) ITK_DELETE_FUNCTION; //purposely not implemented // Parameters set by the user bool m_Normalized; diff --git a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModelFactory.h b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModelFactory.h index a072d5d719..5ef843d4d8 100644 --- a/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModelFactory.h +++ b/Modules/Learning/Unsupervised/include/otbSharkKMeansMachineLearningModelFactory.h @@ -62,8 +62,8 @@ protected: virtual ~SharkKMeansMachineLearningModelFactory(); private: - SharkKMeansMachineLearningModelFactory(const Self &); //purposely not implemented - void operator =(const Self&); //purposely not implemented + SharkKMeansMachineLearningModelFactory(const Self &) ITK_DELETE_FUNCTION; //purposely not implemented + void operator =(const Self&) ITK_DELETE_FUNCTION; //purposely not implemented }; -- GitLab