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:
parent
66ffb01629
commit
b8d87f641f
@ -145,8 +145,8 @@ QStringList SearchPluginManager::getPluginCategories(const QString &pluginName)
|
|||||||
plugins << pluginName.trimmed();
|
plugins << pluginName.trimmed();
|
||||||
|
|
||||||
QSet<QString> categories;
|
QSet<QString> categories;
|
||||||
for (const QString &pluginName : qAsConst(plugins)) {
|
for (const QString &name : qAsConst(plugins)) {
|
||||||
const PluginInfo *plugin = pluginInfo(pluginName);
|
const PluginInfo *plugin = pluginInfo(name);
|
||||||
if (!plugin) continue; // plugin wasn't found
|
if (!plugin) continue; // plugin wasn't found
|
||||||
for (const QString &category : plugin->supportedCategories)
|
for (const QString &category : plugin->supportedCategories)
|
||||||
categories << category;
|
categories << category;
|
||||||
|
Loading…
Reference in New Issue
Block a user