Use reference whenever possible

This commit is contained in:
Chocobo1
2023-05-05 02:50:19 +08:00
parent 5b43782f58
commit 8c9b6e2f2d
12 changed files with 13 additions and 13 deletions

View File

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

View File

@@ -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();