From b8d87f641fc27771404581924f87957581d9b374 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 26 Sep 2018 23:52:47 +0800 Subject: [PATCH] Avoid variable shadowing --- src/base/search/searchpluginmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/search/searchpluginmanager.cpp b/src/base/search/searchpluginmanager.cpp index 8915fbe71..ebb54a6f6 100644 --- a/src/base/search/searchpluginmanager.cpp +++ b/src/base/search/searchpluginmanager.cpp @@ -145,8 +145,8 @@ QStringList SearchPluginManager::getPluginCategories(const QString &pluginName) plugins << pluginName.trimmed(); QSet 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;