diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-06-01 22:39:55 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2020-06-01 22:39:55 +0200 |
commit | 62e58ef4f21e4bc22c25a2e82be3a2fa9538d663 (patch) | |
tree | f632c66754b4a6ad546ffd192aad2b594699495f /src/widget/wtracktableview.cpp | |
parent | 1eaf7e257b26d4625c7b0ce64e03f85d3d42f860 (diff) |
library: Switch to std::vector for getTrackRows()
Diffstat (limited to 'src/widget/wtracktableview.cpp')
-rw-r--r-- | src/widget/wtracktableview.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/wtracktableview.cpp b/src/widget/wtracktableview.cpp index 794c9f0e4f..628a2c29d4 100644 --- a/src/widget/wtracktableview.cpp +++ b/src/widget/wtracktableview.cpp @@ -811,7 +811,7 @@ void WTrackTableView::setSelectedTracks(const QList<TrackId>& trackIds) { } for (const auto& trackId : trackIds) { - const std::list<int> gts = pTrackModel->getTrackRows(trackId); + const auto gts = pTrackModel->getTrackRows(trackId); for (int trackRow : gts) { pSelectionModel->select(model()->index(trackRow, 0), @@ -866,7 +866,7 @@ void WTrackTableView::doSortByColumn(int headerSection, Qt::SortOrder sortOrder) // the TrackModel. This will allow the playlist table model to use the // table index as the unique id instead of this code stupidly using // trackid. - std::list<int> rows = trackModel->getTrackRows(trackId); + const auto rows = trackModel->getTrackRows(trackId); for (int row : rows) { // Restore sort order by rows, so the following commands will act as expected selectedRows.insert(row, 0); |