Remove defunct calls to KAboutData::pluginData

The data is never registered so they always return nullptr. We might as well not pass it.
This commit is contained in:
Nicolas Fella 2020-10-21 18:36:33 +02:00
parent 671046888f
commit f2d97193eb
2 changed files with 2 additions and 2 deletions

View file

@ -23,7 +23,7 @@ K_PLUGIN_FACTORY(KdeConnectKcmFactory, registerPlugin<KdeConnectKcm>();)
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))

View file

@ -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())
{