playlist/{flac,m3u}: use std::make_unique

This commit is contained in:
Max Kellermann
2017-11-26 12:10:33 +01:00
parent b13b023c6b
commit 2a774a1fea
5 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ MemorySongEnumerator::NextSong()
if (songs.empty())
return nullptr;
std::unique_ptr<DetachedSong> result(new DetachedSong(std::move(songs.front())));
auto result = std::make_unique<DetachedSong>(std::move(songs.front()));
songs.pop_front();
return result;
}