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

@@ -144,10 +144,10 @@ TagBuilder::Commit()
return tag;
}
Tag *
std::unique_ptr<Tag>
TagBuilder::CommitNew()
{
Tag *tag = new Tag();
std::unique_ptr<Tag> tag(new Tag());
Commit(*tag);
return tag;
}