Fix warnings

This commit is contained in:
Aleix Pol 2021-03-03 15:20:24 +01:00
parent 44a7fc226f
commit 042fdd368a

View file

@ -99,7 +99,7 @@ QStringList PluginLoader::incomingCapabilities() const
for (const KPluginMetaData& service : qAsConst(plugins)) { for (const KPluginMetaData& service : qAsConst(plugins)) {
ret += KPluginMetaData::readStringList(service.rawData(), QStringLiteral("X-KdeConnect-SupportedPacketType")).toSet(); ret += KPluginMetaData::readStringList(service.rawData(), QStringLiteral("X-KdeConnect-SupportedPacketType")).toSet();
} }
return ret.toList(); return ret.values();
} }
QStringList PluginLoader::outgoingCapabilities() const QStringList PluginLoader::outgoingCapabilities() const
@ -108,7 +108,7 @@ QStringList PluginLoader::outgoingCapabilities() const
for (const KPluginMetaData& service : qAsConst(plugins)) { for (const KPluginMetaData& service : qAsConst(plugins)) {
ret += KPluginMetaData::readStringList(service.rawData(), QStringLiteral("X-KdeConnect-OutgoingPacketType")).toSet(); ret += KPluginMetaData::readStringList(service.rawData(), QStringLiteral("X-KdeConnect-OutgoingPacketType")).toSet();
} }
return ret.toList(); return ret.values();
} }
QSet<QString> PluginLoader::pluginsForCapabilities(const QSet<QString>& incoming, const QSet<QString>& outgoing) QSet<QString> PluginLoader::pluginsForCapabilities(const QSet<QString>& incoming, const QSet<QString>& outgoing)