Fix compiler warining non-virtual destructor

ref:
https://stackoverflow.com/questions/38407723/how-to-delete-an-object-of-derived-class-that-has-no-dstructor
This commit is contained in:
Simon De Backer 2020-07-19 15:48:46 +02:00
parent 8c9b30acd6
commit cecacfc769
2 changed files with 6 additions and 0 deletions

View File

@ -20,3 +20,8 @@
PropertiesInterface::PropertiesInterface() PropertiesInterface::PropertiesInterface()
{ {
} }
PropertiesInterface::~PropertiesInterface()
{
}

View File

@ -30,6 +30,7 @@ class PropertiesInterface
{ {
public: public:
PropertiesInterface(); PropertiesInterface();
virtual ~PropertiesInterface();
// Save/load properties to setting file. QString is use for prefix a word befor the name of each paramètre // Save/load properties to setting file. QString is use for prefix a word befor the name of each paramètre
virtual void toSettings (QSettings &settings, const QString = QString()) const =0; virtual void toSettings (QSettings &settings, const QString = QString()) const =0;
virtual void fromSettings (const QSettings &settings, const QString = QString()) =0; virtual void fromSettings (const QSettings &settings, const QString = QString()) =0;