From f2d97193ebb1614431531764ad3602d01dfc3333 Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Wed, 21 Oct 2020 18:36:33 +0200 Subject: [PATCH] Remove defunct calls to KAboutData::pluginData The data is never registered so they always return nullptr. We might as well not pass it. --- kcm/kcm.cpp | 2 +- kcmplugin/kdeconnectpluginkcm.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 7ea107e0e..543e56b73 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -23,7 +23,7 @@ K_PLUGIN_FACTORY(KdeConnectKcmFactory, registerPlugin();) static QString createId() { return QStringLiteral("kcm")+QString::number(QCoreApplication::applicationPid()); } KdeConnectKcm::KdeConnectKcm(QWidget* parent, const QVariantList& args) - : KCModule(KAboutData::pluginData(QStringLiteral("kdeconnect-kcm")), parent) + : KCModule(parent) , kcmUi(new Ui::KdeConnectKcmUi()) , daemon(new DaemonDbusInterface(this)) , devicesModel(new DevicesModel(this)) diff --git a/kcmplugin/kdeconnectpluginkcm.cpp b/kcmplugin/kdeconnectpluginkcm.cpp index f3887ef45..2777370e8 100644 --- a/kcmplugin/kdeconnectpluginkcm.cpp +++ b/kcmplugin/kdeconnectpluginkcm.cpp @@ -17,7 +17,7 @@ struct KdeConnectPluginKcmPrivate }; KdeConnectPluginKcm::KdeConnectPluginKcm(QWidget* parent, const QVariantList& args, const QString& componentName) - : KCModule(KAboutData::pluginData(componentName), parent, args) + : KCModule(parent, args) , d(new KdeConnectPluginKcmPrivate()) {