mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 03:28:19 +00:00
Deprecate Val(BroFile*) ctor, replace with one using IntrusivePtr
This commit is contained in:
parent
a031f5b727
commit
65aad4922d
9 changed files with 25 additions and 19 deletions
|
@ -328,8 +328,8 @@ void BroFile::RaiseOpenEvent()
|
|||
if ( ! ::file_opened )
|
||||
return;
|
||||
|
||||
Ref(this);
|
||||
Event* event = new ::Event(::file_opened, {make_intrusive<Val>(this)});
|
||||
IntrusivePtr<BroFile> bf{NewRef{}, this};
|
||||
Event* event = new ::Event(::file_opened, {make_intrusive<Val>(std::move(bf))});
|
||||
mgr.Dispatch(event, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue