Remove trailing / for KPluginMetaData::findPlugins

This is not needed and pretty much all usages of this method don't do it too
This commit is contained in:
Alexander Lohnau 2023-07-26 10:52:38 +02:00
parent 09130d1ba0
commit 43bc309f3d
3 changed files with 3 additions and 3 deletions

View file

@ -25,7 +25,7 @@ PluginLoader *PluginLoader::instance()
PluginLoader::PluginLoader()
{
const QVector<KPluginMetaData> data = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect/"));
const QVector<KPluginMetaData> data = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect"));
for (const KPluginMetaData &metadata : data) {
plugins[metadata.pluginId()] = metadata;
}

View file

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

View file

@ -193,7 +193,7 @@ void KdeConnectKcm::resetDeviceView()
},
this);
const QVector<KPluginMetaData> pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect/"));
const QVector<KPluginMetaData> pluginInfo = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect"));
QVector<KPluginMetaData> availablePluginInfo;
m_oldSupportedPluginNames = currentDevice->supportedPlugins();