tag/TagBuilder: overload Commit() returning a Tag object

This commit is contained in:
Max Kellermann
2014-01-08 19:42:04 +01:00
parent ac1983eae3
commit bc23a6bb05
7 changed files with 24 additions and 12 deletions

View File

@@ -782,7 +782,7 @@ copy_icy_tag(struct input_curl *c)
if (!c->meta_name.empty() && !tag->HasType(TAG_NAME)) {
TagBuilder tag_builder(std::move(*tag));
tag_builder.AddItem(TAG_NAME, c->meta_name.c_str());
tag_builder.Commit(*tag);
*tag = tag_builder.Commit();
}
c->tag = tag;