mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 08:19:30 +08:00
Avoid iterating over a temporary variable
This commit is contained in:
parent
0f34e3bed9
commit
0e1849346b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user