diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-10-13 11:13:20 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-10-13 11:13:20 +1100 |
| commit | 20d1c280a77eadcea18438453dc37daaf1d85e2d (patch) | |
| tree | 9ec518001df706f9cfa7c46c01de622b900f47d5 /src/playlist/source.cpp | |
| parent | 53cf476876560723031128a0f1b47135de7167d1 (diff) | |
| download | tangara-fw-20d1c280a77eadcea18438453dc37daaf1d85e2d.tar.gz | |
Remove templating of Continuation
Diffstat (limited to 'src/playlist/source.cpp')
| -rw-r--r-- | src/playlist/source.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/playlist/source.cpp b/src/playlist/source.cpp index cf60b1c1..18a7887b 100644 --- a/src/playlist/source.cpp +++ b/src/playlist/source.cpp @@ -68,7 +68,7 @@ auto IndexRecordSource::Advance() -> std::optional<database::TrackId> { return {}; } - current_page_.reset(db->GetPage(&*next_page).get()); + current_page_.reset(db->GetPage<database::IndexRecord>(&*next_page).get()); current_item_ = 0; } @@ -92,7 +92,7 @@ auto IndexRecordSource::Previous() -> std::optional<database::TrackId> { return {}; } - current_page_.reset(db->GetPage(&*prev_page).get()); + current_page_.reset(db->GetPage<database::IndexRecord>(&*prev_page).get()); current_item_ = current_page_->values().size() - 1; } @@ -124,7 +124,7 @@ auto IndexRecordSource::Peek(std::size_t n, std::vector<database::TrackId>* out) } // TODO(jacqueline): It would probably be a good idea to hold onto these // peeked pages, to avoid needing to look them up again later. - working_page.reset(db->GetPage(&*next_page).get()); + working_page.reset(db->GetPage<database::IndexRecord>(&*next_page).get()); working_item = 0; } |
