From 1785160049b29f3be6c729e344774afab2f26928 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Tue, 5 Mar 2024 19:43:31 +0100 Subject: [PATCH] [kcm] Use correct KCModule constructor BUG: 482199 CCBUG: 478091 --- kcm/kcm.cpp | 4 ++-- kcm/kcm.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index d6b5642dc..5e1cdd708 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -22,8 +22,8 @@ K_PLUGIN_CLASS_WITH_JSON(KdeConnectKcm, "kcm_kdeconnect.json") -KdeConnectKcm::KdeConnectKcm(QObject *parent, const QVariantList &args) - : KCModule(qobject_cast(parent)) +KdeConnectKcm::KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const QVariantList &args) + : KCModule(parent, md) , daemon(new DaemonDbusInterface(this)) , devicesModel(new DevicesModel(this)) , currentDevice(nullptr) diff --git a/kcm/kcm.h b/kcm/kcm.h index 7716a8255..0fa2831a9 100644 --- a/kcm/kcm.h +++ b/kcm/kcm.h @@ -23,7 +23,7 @@ class KdeConnectKcm : public KCModule { Q_OBJECT public: - KdeConnectKcm(QObject *parent, const QVariantList &); + KdeConnectKcm(QObject *parent, const KPluginMetaData &md, const QVariantList &args); ~KdeConnectKcm() override; private: