From 8c2faecb96d465457756223d64c83ecded0e269f Mon Sep 17 00:00:00 2001 From: Laurent Montel Date: Mon, 19 Aug 2024 07:39:00 +0200 Subject: [PATCH] Remove virtual keyword when we use override --- containments/homescreens/folio/foliodelegate.h | 2 +- kcms/virtualkeyboard/gsettingsitem.h | 2 +- tests/notificationtest/tests.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/containments/homescreens/folio/foliodelegate.h b/containments/homescreens/folio/foliodelegate.h index 05e9dda5..904f7e0d 100644 --- a/containments/homescreens/folio/foliodelegate.h +++ b/containments/homescreens/folio/foliodelegate.h @@ -73,7 +73,7 @@ public: static int getTranslatedRow(HomeScreen *homeScreen, int realRow, int realColumn); static int getTranslatedColumn(HomeScreen *homeScreen, int realRow, int realColumn); - virtual QJsonObject toJson() const override; + QJsonObject toJson() const override; int row(); void setRow(int row); diff --git a/kcms/virtualkeyboard/gsettingsitem.h b/kcms/virtualkeyboard/gsettingsitem.h index 257e75a8..c747123b 100644 --- a/kcms/virtualkeyboard/gsettingsitem.h +++ b/kcms/virtualkeyboard/gsettingsitem.h @@ -20,7 +20,7 @@ class GSettingsItem : public QObject public: explicit GSettingsItem(const QString &key, QObject *parent = nullptr); - virtual ~GSettingsItem() override; + ~GSettingsItem() override; QVariant value(const QString &key) const; void set(const QString &key, const QVariant &val); diff --git a/tests/notificationtest/tests.h b/tests/notificationtest/tests.h index 27dff644..1233f382 100644 --- a/tests/notificationtest/tests.h +++ b/tests/notificationtest/tests.h @@ -91,7 +91,7 @@ class FakeJob : public KJob Q_OBJECT public: explicit FakeJob(QObject *parent = nullptr); - virtual void start() override; + void start() override; private Q_SLOTS: void timerFinished();