From 3351b1f8e17108c78df64061a156c3811e3c4782 Mon Sep 17 00:00:00 2001 From: Mathew Sutcliffe Date: Thu, 10 Nov 2016 00:55:35 +0000 Subject: [PATCH] refs #800 Fixed warning: deprecated implicit copy ctor/assign with user-declared dtor (rule of zero). --- src/blackmisc/collection.h | 3 +++ src/blackmisc/iterator.h | 9 +++++++++ src/blackmisc/sequence.h | 3 +++ src/blackmisc/simulation/simulationsettings.h | 6 ------ 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/blackmisc/collection.h b/src/blackmisc/collection.h index c30dcc01f..aaf6ddc27 100644 --- a/src/blackmisc/collection.h +++ b/src/blackmisc/collection.h @@ -296,6 +296,9 @@ namespace BlackMisc class PimplBase { public: + PimplBase() {} + PimplBase(const PimplBase &) = default; + PimplBase &operator =(const PimplBase &) = delete; virtual ~PimplBase() {} virtual PimplBase *clone() const = 0; virtual PimplBase *cloneEmpty() const = 0; diff --git a/src/blackmisc/iterator.h b/src/blackmisc/iterator.h index 14c47b1cd..77a8afeb1 100644 --- a/src/blackmisc/iterator.h +++ b/src/blackmisc/iterator.h @@ -440,6 +440,9 @@ namespace BlackMisc class PimplBase { public: + PimplBase() {} + PimplBase(const PimplBase &) = default; + PimplBase &operator =(const PimplBase &) = delete; virtual ~PimplBase() {} virtual PimplBase *clone() const = 0; virtual const_reference operator *() const = 0; @@ -601,6 +604,9 @@ namespace BlackMisc class PimplBase { public: + PimplBase() {} + PimplBase(const PimplBase &) = default; + PimplBase &operator =(const PimplBase &) = delete; virtual ~PimplBase() {} virtual PimplBase *clone() const = 0; virtual const_reference operator *() const = 0; @@ -786,6 +792,9 @@ namespace BlackMisc class PimplBase { public: + PimplBase() {} + PimplBase(const PimplBase &) = default; + PimplBase &operator =(const PimplBase &) = delete; virtual ~PimplBase() {} virtual PimplBase *clone() const = 0; virtual const_reference operator *() const = 0; diff --git a/src/blackmisc/sequence.h b/src/blackmisc/sequence.h index 4af762ae5..25bd44548 100644 --- a/src/blackmisc/sequence.h +++ b/src/blackmisc/sequence.h @@ -538,6 +538,9 @@ namespace BlackMisc class PimplBase { public: + PimplBase() {} + PimplBase(const PimplBase &) = default; + PimplBase &operator =(const PimplBase &) = delete; virtual ~PimplBase() {} virtual PimplBase *clone() const = 0; virtual PimplBase *cloneEmpty() const = 0; diff --git a/src/blackmisc/simulation/simulationsettings.h b/src/blackmisc/simulation/simulationsettings.h index 02d0d2b32..4d5648cff 100644 --- a/src/blackmisc/simulation/simulationsettings.h +++ b/src/blackmisc/simulation/simulationsettings.h @@ -45,9 +45,6 @@ namespace BlackMisc //! Default constructor CSettings(); - //! Destructor. - ~CSettings() {} - //! Set simulator directory void setSimulatorDirectory(const QString &simulatorDirectory); @@ -207,9 +204,6 @@ namespace BlackMisc //! Default constructor CSettingsSimulatorMessages(); - //! Destructor. - ~CSettingsSimulatorMessages() {} - //! Log severity void setTechnicalLogSeverity(BlackMisc::CStatusMessage::StatusSeverity severity);