mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Func: use class IntrusivePtr
This commit is contained in:
parent
b18573c804
commit
a0c831a1bd
15 changed files with 89 additions and 146 deletions
|
@ -550,7 +550,7 @@ bool Manager::PublishLogWrite(EnumVal* stream, EnumVal* writer, string path, int
|
|||
new StringVal(path),
|
||||
};
|
||||
|
||||
Val* v = log_topic_func->Call(&vl);
|
||||
auto v = log_topic_func->Call(&vl);
|
||||
|
||||
if ( ! v )
|
||||
{
|
||||
|
@ -561,7 +561,6 @@ bool Manager::PublishLogWrite(EnumVal* stream, EnumVal* writer, string path, int
|
|||
}
|
||||
|
||||
std::string topic = v->AsString()->CheckString();
|
||||
Unref(v);
|
||||
|
||||
auto bstream_id = broker::enum_value(move(stream_id));
|
||||
auto bwriter_id = broker::enum_value(move(writer_id));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue