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:
Jon Siwek 2020-03-26 11:29:29 -07:00
parent 599dda9ae9
commit e7e5cf0f89
7 changed files with 17 additions and 18 deletions

View file

@ -626,13 +626,13 @@ void File::FileEvent(EventHandlerPtr h)
void File::FileEvent(EventHandlerPtr h, val_list* vl)
{
FileEvent(h, zeek::val_list_to_args(vl));
FileEvent(h, zeek::val_list_to_args(*vl));
delete vl;
}
void File::FileEvent(EventHandlerPtr h, val_list vl)
{
FileEvent(h, zeek::val_list_to_args(&vl));
FileEvent(h, zeek::val_list_to_args(vl));
}
void File::FileEvent(EventHandlerPtr h, zeek::Args args)