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
@@ -135,7 +135,7 @@ ExtM3uPlaylist::NextSong()
line_s = StripLeft(line_s);
} while (line_s[0] == '#' || *line_s == 0);
return std::unique_ptr<DetachedSong>(new DetachedSong(line_s, std::move(tag)));
return std::make_unique<DetachedSong>(line_s, std::move(tag));
}
static const char *const extm3u_suffixes[] = {