db/simple/Song: convert NewFrom() to constructor
This commit is contained in:
@@ -165,8 +165,8 @@ directory_load(TextFile &file, Directory &directory)
|
||||
auto detached_song = song_load(file, name,
|
||||
&audio_format);
|
||||
|
||||
auto song = Song::NewFrom(std::move(*detached_song),
|
||||
directory);
|
||||
auto song = std::make_unique<Song>(std::move(*detached_song),
|
||||
directory);
|
||||
song->audio_format = audio_format;
|
||||
|
||||
directory.AddSong(std::move(song));
|
||||
|
Reference in New Issue
Block a user