mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
Merge pull request #8558 from luis-pereira/containter-anti-pattern
Don't create temporary containers just to iterate over them
This commit is contained in:
@@ -424,10 +424,10 @@ void PluginSelectDlg::checkForUpdatesFinished(const QHash<QString, PluginVersion
|
||||
return;
|
||||
}
|
||||
|
||||
foreach (const QString &pluginName, updateInfo.keys()) {
|
||||
for (auto i = updateInfo.cbegin(); i != updateInfo.cend(); ++i) {
|
||||
startAsyncOp();
|
||||
m_pendingUpdates++;
|
||||
m_pluginManager->updatePlugin(pluginName);
|
||||
m_pluginManager->updatePlugin(i.key());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user