From 6fbecf28daa3c4e5a734d66e5017f45a4f072c09 Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Wed, 26 Jul 2023 10:52:38 +0200 Subject: [PATCH] Remove trailing / for KPluginMetaData::findPlugins This is not needed and pretty much all usages of this method don't do it too --- core/pluginloader.cpp | 2 +- interfaces/pluginmodel.cpp | 2 +- kcm/kcm.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/pluginloader.cpp b/core/pluginloader.cpp index 0a71de28b..9115bf766 100644 --- a/core/pluginloader.cpp +++ b/core/pluginloader.cpp @@ -25,7 +25,7 @@ PluginLoader *PluginLoader::instance() PluginLoader::PluginLoader() { - const QVector data = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect/")); + const QVector data = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect")); for (const KPluginMetaData &metadata : data) { plugins[metadata.pluginId()] = metadata; } diff --git a/interfaces/pluginmodel.cpp b/interfaces/pluginmodel.cpp index 67cbca4b2..83fd95fa5 100644 --- a/interfaces/pluginmodel.cpp +++ b/interfaces/pluginmodel.cpp @@ -16,7 +16,7 @@ PluginModel::PluginModel(QObject *parent) { connect(this, &QAbstractItemModel::rowsInserted, this, &PluginModel::rowsChanged); connect(this, &QAbstractItemModel::rowsRemoved, this, &PluginModel::rowsChanged); - m_plugins = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect/")); + m_plugins = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect")); } PluginModel::~PluginModel() diff --git a/kcm/kcm.cpp b/kcm/kcm.cpp index 9abc2de89..876e71ffb 100644 --- a/kcm/kcm.cpp +++ b/kcm/kcm.cpp @@ -190,7 +190,7 @@ void KdeConnectKcm::resetDeviceView() }, this); - const QVector pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect/")); + const QVector pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect")); QVector availablePluginInfo; m_oldSupportedPluginNames = currentDevice->supportedPlugins();