mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 12:08:20 +00:00
migrated some raw pointers to smart pointers
This commit is contained in:
parent
c23ee30542
commit
1b2cd0c767
14 changed files with 74 additions and 113 deletions
|
@ -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);
|
||||
}
|
||||
|
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue