mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
shift much of the internal use of ID* identifier pointers over to IDPtr objects
This commit is contained in:
parent
1c7c1b62f6
commit
693aa244f9
43 changed files with 301 additions and 345 deletions
|
@ -44,7 +44,7 @@ TraversalCode trigger::TriggerTraversalCallback::PreExpr(const Expr* expr) {
|
|||
switch ( expr->Tag() ) {
|
||||
case EXPR_NAME: {
|
||||
const auto* e = static_cast<const NameExpr*>(expr);
|
||||
auto id = e->Id();
|
||||
auto id = e->IdPtr();
|
||||
|
||||
if ( id->IsGlobal() )
|
||||
globals.insert(id);
|
||||
|
@ -184,7 +184,7 @@ void Trigger::ReInit(std::vector<ValPtr> index_expr_results) {
|
|||
}
|
||||
|
||||
for ( auto g : globals ) {
|
||||
Register(g);
|
||||
Register(g.get());
|
||||
|
||||
auto& v = g->GetVal();
|
||||
if ( v && v->Modifiable() )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue