tag/Builder: CommitNew() returns std::unique_ptr<Tag>

This commit is contained in:
Max Kellermann
2017-12-20 14:49:48 +01:00
parent d293aaf945
commit cb3042ffb2
8 changed files with 16 additions and 14 deletions

View File

@@ -23,6 +23,7 @@
#include "tag/Table.hxx"
#include "tag/Handler.hxx"
#include "tag/Builder.hxx"
#include "tag/Tag.hxx"
#include "tag/VorbisComment.hxx"
#include "tag/ReplayGain.hxx"
#include "ReplayGainInfo.hxx"
@@ -106,5 +107,5 @@ vorbis_comments_to_tag(char **comments) noexcept
vorbis_comments_scan(comments, add_tag_handler, &tag_builder);
return tag_builder.empty()
? nullptr
: tag_builder.CommitNew();
: tag_builder.CommitNew().release();
}