Deprecate ID::Type(), replace with GetType()

This commit is contained in:
Jon Siwek 2020-05-07 20:47:33 -07:00
parent 6e647416d5
commit 3f07c57523
24 changed files with 111 additions and 106 deletions

View file

@ -136,10 +136,10 @@ RuleConditionEval::RuleConditionEval(const char* func)
return;
}
if ( id->Type()->Tag() == TYPE_FUNC )
if ( id->GetType()->Tag() == TYPE_FUNC )
{
// Validate argument quantity and type.
FuncType* f = id->Type()->AsFuncType();
FuncType* f = id->GetType()->AsFuncType();
if ( f->Yield()->Tag() != TYPE_BOOL )
rules_error("eval function type must yield a 'bool'", func);
@ -163,7 +163,7 @@ bool RuleConditionEval::DoMatch(Rule* rule, RuleEndpointState* state,
return false;
}
if ( id->Type()->Tag() != TYPE_FUNC )
if ( id->GetType()->Tag() != TYPE_FUNC )
return id->ID_Val()->AsBool();
// Call function with a signature_state value as argument.