mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Avoid iterating over a temporary variable
This commit is contained in:
@@ -412,7 +412,8 @@ void CategoryFilterModel::populate()
|
||||
, [](Torrent *torrent) { return torrent->category().isEmpty(); })));
|
||||
|
||||
using Torrent = BitTorrent::Torrent;
|
||||
for (auto i = session->categories().cbegin(); i != session->categories().cend(); ++i)
|
||||
const QStringMap categories = session->categories();
|
||||
for (auto i = categories.cbegin(); i != categories.cend(); ++i)
|
||||
{
|
||||
const QString &category = i.key();
|
||||
if (m_isSubcategoriesEnabled)
|
||||
|
||||
Reference in New Issue
Block a user