From 3e467e185998c53144d499b0f9ada9e9bea36019 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Wed, 31 Jul 2019 17:56:58 +0200 Subject: [PATCH] Fix non-virtual d-tor warnings --- deviceprober.h | 2 ++ ffbdevice.h | 2 ++ ffbeffect.h | 1 + linuxffbdevice.h | 2 +- 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/deviceprober.h b/deviceprober.h index 69519b7..2abfaca 100644 --- a/deviceprober.h +++ b/deviceprober.h @@ -21,6 +21,8 @@ public: SDL2 }; + virtual ~DeviceProber() = default; + virtual void closeAllDevices() = 0; virtual DeviceList listDevices() = 0; virtual std::shared_ptr openDevice(const QString& id) = 0; diff --git a/ffbdevice.h b/ffbdevice.h index baa5104..9c5278a 100644 --- a/ffbdevice.h +++ b/ffbdevice.h @@ -7,6 +7,8 @@ class FFBDevice { public: + virtual ~FFBDevice() = default; + const std::vector& availableConditionSubtypesList() const; const std::vector& availableEffectsList() const; const std::vector& availableWaveformsList() const; diff --git a/ffbeffect.h b/ffbeffect.h index 383252c..adbb503 100644 --- a/ffbeffect.h +++ b/ffbeffect.h @@ -10,6 +10,7 @@ public: enum class FFBEffectStatus { PLAYING, UPLOADED, NOT_LOADED }; explicit FFBEffect(FFBEffectTypes type); + virtual ~FFBEffect() = default; virtual const std::shared_ptr parameters() const = 0; virtual bool setParameters(const std::shared_ptr params) = 0; inline void setStatus(FFBEffectStatus status) { m_status = status; } diff --git a/linuxffbdevice.h b/linuxffbdevice.h index 66289c9..9d30a47 100644 --- a/linuxffbdevice.h +++ b/linuxffbdevice.h @@ -40,4 +40,4 @@ public slots: }; -#endif // FFBDEVICE_H +#endif // LINUXFFBDEVICE_H -- 2.43.5