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

@@ -31,6 +31,7 @@
#include "config/ConfigGlobal.hxx"
#include "config/Block.hxx"
#include "tag/Builder.hxx"
#include "tag/Tag.hxx"
#include "event/Call.hxx"
#include "event/Loop.hxx"
#include "thread/Cond.hxx"
@@ -222,7 +223,7 @@ CurlInputStream::OnHeaders(unsigned status,
TagBuilder tag_builder;
tag_builder.AddItem(TAG_NAME, i->second.c_str());
SetTag(tag_builder.CommitNew());
SetTag(tag_builder.CommitNew().release());
}
if (!icy->IsEnabled()) {