mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Deprecate TypeDecl::FindAttr(), replace with GetAttr()
This commit is contained in:
parent
5fc78a548c
commit
e365105872
6 changed files with 26 additions and 23 deletions
|
@ -2881,7 +2881,7 @@ IntrusivePtr<RecordVal> RecordVal::CoerceTo(IntrusivePtr<RecordType> t,
|
|||
|
||||
for ( i = 0; i < ar_t->NumFields(); ++i )
|
||||
if ( ! aggr->GetField(i) &&
|
||||
! ar_t->FieldDecl(i)->FindAttr(ATTR_OPTIONAL) )
|
||||
! ar_t->FieldDecl(i)->GetAttr(ATTR_OPTIONAL) )
|
||||
{
|
||||
char buf[512];
|
||||
snprintf(buf, sizeof(buf),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue