From cecacfc769c4c2647a0dae5916ce3e266e3f7ab0 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Sun, 19 Jul 2020 15:48:46 +0200 Subject: [PATCH] Fix compiler warining non-virtual destructor ref: https://stackoverflow.com/questions/38407723/how-to-delete-an-object-of-derived-class-that-has-no-dstructor --- sources/properties/propertiesinterface.cpp | 5 +++++ sources/properties/propertiesinterface.h | 1 + 2 files changed, 6 insertions(+) diff --git a/sources/properties/propertiesinterface.cpp b/sources/properties/propertiesinterface.cpp index da7b042d4..5d148ea06 100644 --- a/sources/properties/propertiesinterface.cpp +++ b/sources/properties/propertiesinterface.cpp @@ -20,3 +20,8 @@ PropertiesInterface::PropertiesInterface() { } + +PropertiesInterface::~PropertiesInterface() +{ + +} diff --git a/sources/properties/propertiesinterface.h b/sources/properties/propertiesinterface.h index 0799ab69b..4dca7d126 100644 --- a/sources/properties/propertiesinterface.h +++ b/sources/properties/propertiesinterface.h @@ -30,6 +30,7 @@ class PropertiesInterface { public: PropertiesInterface(); + virtual ~PropertiesInterface(); // 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 fromSettings (const QSettings &settings, const QString = QString()) =0;