mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
GH-1624: Migrate check_and_promote and a few Expr methods to IntrusivePtr
This commit is contained in:
parent
75b7bd0c6e
commit
edf90a51e4
7 changed files with 76 additions and 65 deletions
|
@ -23,7 +23,7 @@
|
|||
namespace zeek::detail
|
||||
{
|
||||
|
||||
static ValPtr init_val(Expr* init, const Type* t, ValPtr aggr)
|
||||
static ValPtr init_val(ExprPtr init, TypePtr t, ValPtr aggr)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -289,7 +289,7 @@ static void make_var(const IDPtr& id, TypePtr t, InitClass c, ExprPtr init,
|
|||
|
||||
if ( init )
|
||||
{
|
||||
v = init_val(init.get(), t.get(), aggr);
|
||||
v = init_val(init, t, aggr);
|
||||
|
||||
if ( ! v )
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue