mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 06:02:29 -06:00
Use reference whenever possible
This commit is contained in:
@@ -199,7 +199,7 @@ void StatusFilterWidget::hideZeroItems()
|
||||
setCurrentRow(TorrentFilter::All, QItemSelectionModel::SelectCurrent);
|
||||
}
|
||||
|
||||
void StatusFilterWidget::update(const QVector<BitTorrent::Torrent *> torrents)
|
||||
void StatusFilterWidget::update(const QVector<BitTorrent::Torrent *> &torrents)
|
||||
{
|
||||
for (const BitTorrent::Torrent *torrent : torrents)
|
||||
updateTorrentStatus(torrent);
|
||||
|
||||
@@ -58,7 +58,7 @@ private:
|
||||
|
||||
void configure();
|
||||
|
||||
void update(QVector<BitTorrent::Torrent *> torrents);
|
||||
void update(const QVector<BitTorrent::Torrent *> &torrents);
|
||||
void updateTorrentStatus(const BitTorrent::Torrent *torrent);
|
||||
void updateTexts();
|
||||
void hideZeroItems();
|
||||
|
||||
Reference in New Issue
Block a user