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
@@ -229,7 +229,7 @@ CueParser::Feed2(char *p) noexcept
}
state = TRACK;
current.reset(new DetachedSong(filename));
current = std::make_unique<DetachedSong>(filename);
assert(!current->GetTag().IsDefined());
song_tag = header_tag;