mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Avoid iterating over a temporary variable
This commit is contained in:
parent
0f34e3bed9
commit
0e1849346b
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue