summaryrefslogtreecommitdiff
path: root/src/playlist/PlaylistQueue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-20 20:14:19 +0100
committerMax Kellermann <max@musicpd.org>2018-01-20 20:14:19 +0100
commita9847ebf54835c9718f3089b6be9bb284ad8d040 (patch)
tree18e30df98d8364ca8f4463ffa375d1c93057cb78 /src/playlist/PlaylistQueue.cxx
parent4ca1089f600ad283a2d747c2cf8e4948a0a62d1e (diff)
playlist/Queue: use "auto"
Diffstat (limited to 'src/playlist/PlaylistQueue.cxx')
-rw-r--r--src/playlist/PlaylistQueue.cxx6
1 files 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<SongEnumerator> 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();