mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Deprecate ID::ID_Val(), replace with ID::GetVal()
This commit is contained in:
parent
16a8bf3318
commit
32b895f4ba
23 changed files with 69 additions and 68 deletions
|
@ -164,7 +164,7 @@ bool RuleConditionEval::DoMatch(Rule* rule, RuleEndpointState* state,
|
|||
}
|
||||
|
||||
if ( id->GetType()->Tag() != TYPE_FUNC )
|
||||
return id->ID_Val()->AsBool();
|
||||
return id->GetVal()->AsBool();
|
||||
|
||||
// Call function with a signature_state value as argument.
|
||||
zeek::Args args;
|
||||
|
@ -180,7 +180,7 @@ bool RuleConditionEval::DoMatch(Rule* rule, RuleEndpointState* state,
|
|||
|
||||
try
|
||||
{
|
||||
auto val = id->ID_Val()->AsFunc()->Call(args);
|
||||
auto val = id->GetVal()->AsFunc()->Call(args);
|
||||
result = val && val->AsBool();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue