migrated some raw pointers to smart pointers

This commit is contained in:
Vern Paxson 2023-07-07 18:29:45 -07:00
parent c23ee30542
commit 1b2cd0c767
14 changed files with 74 additions and 113 deletions

View file

@ -395,7 +395,7 @@ zeek:
stmt_list
{
if ( stmts )
stmts->AsStmtList()->Stmts().push_back($3);
stmts->AsStmtList()->Stmts().push_back({AdoptRef{}, $3});
else
stmts = $3;
@ -1931,7 +1931,8 @@ stmt:
| when_clause
{
$$ = new WhenStmt($1);
std::shared_ptr<WhenInfo> wi($1);
$$ = new WhenStmt(wi);
script_coverage_mgr.AddStmt($$);
}
@ -1968,7 +1969,7 @@ stmt_list:
stmt_list stmt
{
set_location(@1, @2);
$1->AsStmtList()->Stmts().push_back($2);
$1->AsStmtList()->Stmts().push_back({AdoptRef{}, $2});
$1->UpdateLocationEndInfo(@2);
}
|