playlist/Queue: use "auto"
This commit is contained in:
parent
4ca1089f60
commit
a9847ebf54
@ -72,11 +72,11 @@ playlist_open_into_queue(const char *uri,
|
|||||||
Mutex mutex;
|
Mutex mutex;
|
||||||
Cond cond;
|
Cond cond;
|
||||||
|
|
||||||
std::unique_ptr<SongEnumerator> playlist(playlist_open_any(uri,
|
auto playlist = playlist_open_any(uri,
|
||||||
#ifdef ENABLE_DATABASE
|
#ifdef ENABLE_DATABASE
|
||||||
loader.GetStorage(),
|
loader.GetStorage(),
|
||||||
#endif
|
#endif
|
||||||
mutex, cond));
|
mutex, cond);
|
||||||
if (playlist == nullptr)
|
if (playlist == nullptr)
|
||||||
throw PlaylistError::NoSuchList();
|
throw PlaylistError::NoSuchList();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user