Combine qAsConst() with copyAsConst() to asConst()

This commit is contained in:
thalieht 2018-11-27 22:15:04 +02:00 committed by sledgehammer999
commit bd4d2fa424
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
57 changed files with 199 additions and 202 deletions

View file

@ -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