Deprecate Val(BroFile*) ctor, replace with one using IntrusivePtr

This commit is contained in:
Jon Siwek 2020-05-15 17:11:05 -07:00
parent a031f5b727
commit 65aad4922d
9 changed files with 25 additions and 19 deletions

View file

@ -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);
}