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 399d279e83
commit 6fbecf28da
3 changed files with 3 additions and 3 deletions

View file

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

View file

@ -16,7 +16,7 @@ PluginModel::PluginModel(QObject *parent)
{ {
connect(this, &QAbstractItemModel::rowsInserted, this, &PluginModel::rowsChanged); connect(this, &QAbstractItemModel::rowsInserted, this, &PluginModel::rowsChanged);
connect(this, &QAbstractItemModel::rowsRemoved, this, &PluginModel::rowsChanged); connect(this, &QAbstractItemModel::rowsRemoved, this, &PluginModel::rowsChanged);
m_plugins = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect/")); m_plugins = KPluginMetaData::findPlugins(QStringLiteral("kdeconnect"));
} }
PluginModel::~PluginModel() PluginModel::~PluginModel()

View file

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