From a9847ebf54835c9718f3089b6be9bb284ad8d040 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 20 Jan 2018 20:14:19 +0100 Subject: [PATCH] playlist/Queue: use "auto" --- src/playlist/PlaylistQueue.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/playlist/PlaylistQueue.cxx b/src/playlist/PlaylistQueue.cxx index aa8bc7858..77edb7249 100644 --- a/src/playlist/PlaylistQueue.cxx +++ b/src/playlist/PlaylistQueue.cxx @@ -72,11 +72,11 @@ playlist_open_into_queue(const char *uri, Mutex mutex; Cond cond; - std::unique_ptr playlist(playlist_open_any(uri, + auto playlist = playlist_open_any(uri, #ifdef ENABLE_DATABASE - loader.GetStorage(), + loader.GetStorage(), #endif - mutex, cond)); + mutex, cond); if (playlist == nullptr) throw PlaylistError::NoSuchList();