mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +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
|
@ -205,7 +205,7 @@ void get_first_statement(Stmt* list, Stmt*& first, Location& loc)
|
|||
while ( first->Tag() == STMT_LIST )
|
||||
{
|
||||
if ( first->AsStmtList()->Stmts()[0] )
|
||||
first = first->AsStmtList()->Stmts()[0];
|
||||
first = first->AsStmtList()->Stmts()[0].get();
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue