tag/TagBuilder: rename Commit() to CommitNew()

This commit is contained in:
Max Kellermann
2014-01-08 19:43:09 +01:00
parent 33c5fc95b4
commit ac1983eae3
20 changed files with 23 additions and 23 deletions

View File

@@ -94,7 +94,7 @@ Tag::Merge(const Tag &base, const Tag &add)
{
TagBuilder builder(add);
builder.Complement(base);
return builder.Commit();
return builder.CommitNew();
}
Tag *

View File

@@ -134,7 +134,7 @@ TagBuilder::Commit(Tag &tag)
}
Tag *
TagBuilder::Commit()
TagBuilder::CommitNew()
{
Tag *tag = new Tag();
Commit(*tag);

View File

@@ -101,7 +101,7 @@ public:
* returned object is owned by the caller. This object is
* empty afterwards.
*/
Tag *Commit();
Tag *CommitNew();
void SetTime(int _time) {
time = _time;

View File

@@ -370,7 +370,7 @@ tag_id3_import(struct id3_tag *tag)
scan_id3_tag(tag, &add_tag_handler, &tag_builder);
return tag_builder.IsEmpty()
? nullptr
: tag_builder.Commit();
: tag_builder.CommitNew();
}
static size_t