diff --git a/core/backends/devicelink.h b/core/backends/devicelink.h index f97b0bec8..4d67eac66 100644 --- a/core/backends/devicelink.h +++ b/core/backends/devicelink.h @@ -26,7 +26,7 @@ public: enum PairStatus { NotPaired, Paired }; DeviceLink(const QString& deviceId, LinkProvider* parent); - virtual ~DeviceLink() = default; + ~DeviceLink() override = default; virtual QString name() = 0; diff --git a/interfaces/dbusinterfaces.h b/interfaces/dbusinterfaces.h index f04103d67..9e19fe5d8 100644 --- a/interfaces/dbusinterfaces.h +++ b/interfaces/dbusinterfaces.h @@ -247,7 +247,7 @@ class KDECONNECTINTERFACES_EXPORT RemoteSystemVolumeDbusInterface Q_OBJECT public: explicit RemoteSystemVolumeDbusInterface(const QString& deviceId, QObject* parent = nullptr); - ~RemoteSystemVolumeDbusInterface() = default; + ~RemoteSystemVolumeDbusInterface() override = default; }; class KDECONNECTINTERFACES_EXPORT BigscreenDbusInterface diff --git a/plugins/clipboard/datacontrol.cpp b/plugins/clipboard/datacontrol.cpp index 648374c34..f195a0a8f 100644 --- a/plugins/clipboard/datacontrol.cpp +++ b/plugins/clipboard/datacontrol.cpp @@ -38,7 +38,7 @@ public: { } - ~DataControlDeviceManager() + ~DataControlDeviceManager() override { destroy(); } @@ -53,7 +53,7 @@ public: { } - ~DataControlOffer() + ~DataControlOffer() override { destroy(); } @@ -170,7 +170,7 @@ class DataControlSource : public QObject, public QtWayland::zwlr_data_control_so public: DataControlSource(struct ::zwlr_data_control_source_v1 *id, QMimeData *mimeData); DataControlSource(); - ~DataControlSource() + ~DataControlSource() override { destroy(); } @@ -232,7 +232,7 @@ public: { } - ~DataControlDevice() + ~DataControlDevice() override { destroy(); } diff --git a/plugins/mprisremote/mprisremoteplayer.h b/plugins/mprisremote/mprisremoteplayer.h index 07d07bb59..0af49c999 100644 --- a/plugins/mprisremote/mprisremoteplayer.h +++ b/plugins/mprisremote/mprisremoteplayer.h @@ -16,7 +16,7 @@ class MprisRemotePlayer : public QObject { public: explicit MprisRemotePlayer(QString id, MprisRemotePlugin *plugin); - virtual ~MprisRemotePlayer(); + ~MprisRemotePlayer() override; void parseNetworkPacket(const NetworkPacket& np); long position() const; diff --git a/plugins/mprisremote/mprisremoteplayermediaplayer2.h b/plugins/mprisremote/mprisremoteplayermediaplayer2.h index 198ff7e92..13efa9957 100644 --- a/plugins/mprisremote/mprisremoteplayermediaplayer2.h +++ b/plugins/mprisremote/mprisremoteplayermediaplayer2.h @@ -24,7 +24,7 @@ class MprisRemotePlayerMediaPlayer2 : public QDBusAbstractAdaptor { public: explicit MprisRemotePlayerMediaPlayer2(MprisRemotePlayer *parent, const MprisRemotePlugin *plugin); - ~MprisRemotePlayerMediaPlayer2(); + ~MprisRemotePlayerMediaPlayer2() override; public Q_SLOTS: void Raise(); diff --git a/plugins/mprisremote/mprisremoteplayermediaplayer2player.h b/plugins/mprisremote/mprisremoteplayermediaplayer2player.h index d7d769f4d..c418f0782 100644 --- a/plugins/mprisremote/mprisremoteplayermediaplayer2player.h +++ b/plugins/mprisremote/mprisremoteplayermediaplayer2player.h @@ -32,7 +32,7 @@ class MprisRemotePlayerMediaPlayer2Player : public QDBusAbstractAdaptor { public: explicit MprisRemotePlayerMediaPlayer2Player(MprisRemotePlayer *parent, MprisRemotePlugin *plugin); - ~MprisRemotePlayerMediaPlayer2Player(); + ~MprisRemotePlayerMediaPlayer2Player() override; public Q_SLOTS: void Next(); diff --git a/plugins/telephony/telephonyplugin.h b/plugins/telephony/telephonyplugin.h index 6b02d967f..bff1af1a4 100644 --- a/plugins/telephony/telephonyplugin.h +++ b/plugins/telephony/telephonyplugin.h @@ -38,7 +38,7 @@ class TelephonyPlugin public: explicit TelephonyPlugin(QObject* parent, const QVariantList& args); - ~TelephonyPlugin() = default; + ~TelephonyPlugin() override = default; bool receivePacket(const NetworkPacket& np) override; void connected() override {} diff --git a/smsapp/conversationlistmodel.h b/smsapp/conversationlistmodel.h index 1f913c10b..cbcefa488 100644 --- a/smsapp/conversationlistmodel.h +++ b/smsapp/conversationlistmodel.h @@ -21,7 +21,7 @@ class ConversationListModel public: ConversationListModel(QObject* parent = nullptr); - ~ConversationListModel(); + ~ConversationListModel() override; enum Roles { /* Roles which apply while working as a single message */ diff --git a/smsapp/conversationmodel.h b/smsapp/conversationmodel.h index 853a36450..768cb9380 100644 --- a/smsapp/conversationmodel.h +++ b/smsapp/conversationmodel.h @@ -27,7 +27,7 @@ class ConversationModel public: ConversationModel(QObject* parent = nullptr); - ~ConversationModel(); + ~ConversationModel() override; enum Roles { FromMeRole = Qt::UserRole, diff --git a/smsapp/conversationssortfilterproxymodel.h b/smsapp/conversationssortfilterproxymodel.h index abca8e9ca..3cae2a756 100644 --- a/smsapp/conversationssortfilterproxymodel.h +++ b/smsapp/conversationssortfilterproxymodel.h @@ -43,7 +43,7 @@ public: Q_INVOKABLE bool doesAddressExists(const QString& address); ConversationsSortFilterProxyModel(); - ~ConversationsSortFilterProxyModel(); + ~ConversationsSortFilterProxyModel() override; protected: bool lessThan(const QModelIndex& leftIndex, const QModelIndex& rightIndex) const override; diff --git a/smsapp/smshelper.h b/smsapp/smshelper.h index 806a3d0af..55f19dbe0 100644 --- a/smsapp/smshelper.h +++ b/smsapp/smshelper.h @@ -25,7 +25,7 @@ class SmsHelper : public QObject Q_OBJECT public: SmsHelper() = default; - ~SmsHelper() = default; + ~SmsHelper() override = default; static QObject* singletonProvider(QQmlEngine *engine, QJSEngine *scriptEngine);