1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-12 15:57:57 +00:00

Avoid variable shadowing

This commit is contained in:
Chocobo1 2018-09-26 23:52:47 +08:00
parent 66ffb01629
commit b8d87f641f
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C

View File

@ -145,8 +145,8 @@ QStringList SearchPluginManager::getPluginCategories(const QString &pluginName)
plugins << pluginName.trimmed();
QSet<QString> categories;
for (const QString &pluginName : qAsConst(plugins)) {
const PluginInfo *plugin = pluginInfo(pluginName);
for (const QString &name : qAsConst(plugins)) {
const PluginInfo *plugin = pluginInfo(name);
if (!plugin) continue; // plugin wasn't found
for (const QString &category : plugin->supportedCategories)
categories << category;