mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Use type aliases for IntrusivePtr definitions
This commit is contained in:
parent
f6a251cdac
commit
ec9eff0bd5
180 changed files with 2026 additions and 1893 deletions
|
@ -328,7 +328,7 @@ void BroFile::RaiseOpenEvent()
|
|||
if ( ! ::file_opened )
|
||||
return;
|
||||
|
||||
zeek::IntrusivePtr<BroFile> bf{zeek::NewRef{}, this};
|
||||
BroFilePtr bf{zeek::NewRef{}, this};
|
||||
Event* event = new ::Event(::file_opened, {zeek::make_intrusive<Val>(std::move(bf))});
|
||||
mgr.Dispatch(event, true);
|
||||
}
|
||||
|
@ -346,7 +346,7 @@ double BroFile::Size()
|
|||
return s.st_size;
|
||||
}
|
||||
|
||||
zeek::IntrusivePtr<BroFile> BroFile::Get(const char* name)
|
||||
BroFilePtr BroFile::Get(const char* name)
|
||||
{
|
||||
for ( const auto &el : open_files )
|
||||
if ( el.first == name )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue