mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
Combine qAsConst() with copyAsConst() to asConst()
This commit is contained in:
@@ -62,7 +62,7 @@ TransferListModel::TransferListModel(QObject *parent)
|
||||
{
|
||||
// Load the torrents
|
||||
using namespace BitTorrent;
|
||||
for (TorrentHandle *const torrent : copyAsConst(Session::instance()->torrents()))
|
||||
for (TorrentHandle *const torrent : asConst(Session::instance()->torrents()))
|
||||
addTorrent(torrent);
|
||||
|
||||
// Listen for torrent changes
|
||||
|
||||
Reference in New Issue
Block a user