refs #800 Fixed warning: deprecated implicit copy ctor/assign with user-declared dtor (rule of zero).

This commit is contained in:
Mathew Sutcliffe
2016-11-10 00:55:35 +00:00
committed by Klaus Basan
parent a44ffcbe79
commit 3351b1f8e1
4 changed files with 15 additions and 6 deletions

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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);