SongSave: return DetachedSong, not a std::unique_ptr<>

Eliminate unnecessary dynamic allocations.
This commit is contained in:
Max Kellermann
2019-09-05 20:50:00 +02:00
parent a1e2602c3d
commit 07f212c98c
4 changed files with 12 additions and 12 deletions

View File

@@ -42,7 +42,7 @@ song_save(BufferedOutputStream &os, const DetachedSong &song);
*
* Throws on error.
*/
std::unique_ptr<DetachedSong>
DetachedSong
song_load(TextFile &file, const char *uri,
AudioFormat *audio_format_r=nullptr);