Deprecate ID::ID_Val(), replace with ID::GetVal()

This commit is contained in:
Jon Siwek 2020-05-07 22:11:10 -07:00
parent 16a8bf3318
commit 32b895f4ba
23 changed files with 69 additions and 68 deletions

View file

@ -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();
}