mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 00:58:19 +00:00
Use const-ref parameter for zeek::val_list_to_args()
It ended up being used a bit more than initially expected and this is closer to the style we're generally aiming for.
This commit is contained in:
parent
599dda9ae9
commit
e7e5cf0f89
7 changed files with 17 additions and 18 deletions
|
@ -99,14 +99,14 @@ void EventMgr::QueueEventFast(const EventHandlerPtr &h, val_list vl,
|
|||
SourceID src, analyzer::ID aid, TimerMgr* mgr,
|
||||
BroObj* obj)
|
||||
{
|
||||
QueueEvent(new Event(h, zeek::val_list_to_args(&vl), src, aid, obj));
|
||||
QueueEvent(new Event(h, zeek::val_list_to_args(vl), src, aid, obj));
|
||||
}
|
||||
|
||||
void EventMgr::QueueEvent(const EventHandlerPtr &h, val_list vl,
|
||||
SourceID src, analyzer::ID aid,
|
||||
TimerMgr* mgr, BroObj* obj)
|
||||
{
|
||||
auto args = zeek::val_list_to_args(&vl);
|
||||
auto args = zeek::val_list_to_args(vl);
|
||||
|
||||
if ( h )
|
||||
Enqueue(h, std::move(args), src, aid, obj);
|
||||
|
@ -116,7 +116,7 @@ void EventMgr::QueueEvent(const EventHandlerPtr &h, val_list* vl,
|
|||
SourceID src, analyzer::ID aid,
|
||||
TimerMgr* mgr, BroObj* obj)
|
||||
{
|
||||
auto args = zeek::val_list_to_args(vl);
|
||||
auto args = zeek::val_list_to_args(*vl);
|
||||
delete vl;
|
||||
|
||||
if ( h )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue