tag/TagBuilder: overload Commit() returning a Tag object
This commit is contained in:
@@ -133,6 +133,14 @@ TagBuilder::Commit(Tag &tag)
|
||||
Clear();
|
||||
}
|
||||
|
||||
Tag
|
||||
TagBuilder::Commit()
|
||||
{
|
||||
Tag tag;
|
||||
Commit(tag);
|
||||
return tag;
|
||||
}
|
||||
|
||||
Tag *
|
||||
TagBuilder::CommitNew()
|
||||
{
|
||||
|
@@ -96,6 +96,12 @@ public:
|
||||
*/
|
||||
void Commit(Tag &tag);
|
||||
|
||||
/**
|
||||
* Create a new #Tag instance from data in this object. This
|
||||
* object is empty afterwards.
|
||||
*/
|
||||
Tag Commit();
|
||||
|
||||
/**
|
||||
* Create a new #Tag instance from data in this object. The
|
||||
* returned object is owned by the caller. This object is
|
||||
|
Reference in New Issue
Block a user