mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Expr: don't pass reference to pointer to check_and_promote*()
The function never modifies the pointer value. check_and_promote_expr() is left untouched because it really does modify the pointer.
This commit is contained in:
parent
3ccda03a54
commit
0520d715c3
2 changed files with 6 additions and 6 deletions
|
@ -1085,9 +1085,9 @@ Expr* get_assign_expr(Expr* op1, Expr* op2, int is_init);
|
|||
//
|
||||
// Note, the type is not "const" because it can be ref'd.
|
||||
extern int check_and_promote_expr(Expr*& e, BroType* t);
|
||||
extern int check_and_promote_exprs(ListExpr*& elements, TypeList* types);
|
||||
extern int check_and_promote_args(ListExpr*& args, RecordType* types);
|
||||
extern int check_and_promote_exprs_to_type(ListExpr*& elements, BroType* type);
|
||||
extern int check_and_promote_exprs(ListExpr* elements, TypeList* types);
|
||||
extern int check_and_promote_args(ListExpr* args, RecordType* types);
|
||||
extern int check_and_promote_exprs_to_type(ListExpr* elements, BroType* type);
|
||||
|
||||
// Returns a ListExpr simplified down to a list a values, or a nil
|
||||
// pointer if they couldn't all be reduced.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue