tag/TagBuilder: rename Commit() to CommitNew()
This commit is contained in:
@@ -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 *
|
||||
|
@@ -134,7 +134,7 @@ TagBuilder::Commit(Tag &tag)
|
||||
}
|
||||
|
||||
Tag *
|
||||
TagBuilder::Commit()
|
||||
TagBuilder::CommitNew()
|
||||
{
|
||||
Tag *tag = new Tag();
|
||||
Commit(*tag);
|
||||
|
@@ -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;
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user