mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -17,11 +17,10 @@ using Args = std::vector<IntrusivePtr<Val>>;
|
|||
* Converts a legacy-style argument list for use in modern Zeek function
|
||||
* calling or event queueing APIs.
|
||||
* @param vl the argument list to convert, the returned value takes ownership
|
||||
* of a reference to each element in the list, but not ownership of the list
|
||||
* itself.
|
||||
* of a reference to each element in the list
|
||||
* @return the converted argument list
|
||||
*
|
||||
*/
|
||||
Args val_list_to_args(const val_list* vl);
|
||||
Args val_list_to_args(const val_list& vl);
|
||||
|
||||
} // namespace zeek
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue