From 320fdeb9d8355d3c361d5c6d60de8afc64501af9 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 30 Aug 2023 16:48:10 +1000 Subject: Use a service locator instead of passing around subsets of drivers between FSMs --- src/ui/include/screen_playing.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ui/include/screen_playing.hpp') diff --git a/src/ui/include/screen_playing.hpp b/src/ui/include/screen_playing.hpp index c684ddff..f2998c88 100644 --- a/src/ui/include/screen_playing.hpp +++ b/src/ui/include/screen_playing.hpp @@ -29,7 +29,7 @@ namespace screens { class Playing : public Screen { public: explicit Playing(std::weak_ptr db, - audio::TrackQueue* queue); + audio::TrackQueue& queue); ~Playing(); auto Tick() -> void override; @@ -51,7 +51,7 @@ class Playing : public Screen { auto ApplyNextUp(const std::vector& tracks) -> void; std::weak_ptr db_; - audio::TrackQueue* queue_; + audio::TrackQueue& queue_; std::optional track_; std::vector next_tracks_; -- cgit v1.2.3