playlist/Queue: use "auto"

This commit is contained in:
Max Kellermann 2018-01-20 20:14:19 +01:00
parent 4ca1089f60
commit a9847ebf54

View File

@ -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();