Browse Source

Avoid variable shadowing

adaptive-webui-19844
Chocobo1 6 years ago
parent
commit
b8d87f641f
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 4
      src/base/search/searchpluginmanager.cpp

4
src/base/search/searchpluginmanager.cpp

@ -145,8 +145,8 @@ QStringList SearchPluginManager::getPluginCategories(const QString &pluginName) @@ -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;

Loading…
Cancel
Save