mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Deprecate attr_tag in a different way, rename to AttrTag
This commit is contained in:
parent
a5a51de3c4
commit
a280bfa0b1
9 changed files with 67 additions and 137 deletions
12
src/ID.cc
12
src/ID.cc
|
@ -287,7 +287,7 @@ void ID::UpdateValAttrs()
|
|||
}
|
||||
}
|
||||
|
||||
const IntrusivePtr<Attr>& ID::GetAttr(attr_tag t) const
|
||||
const IntrusivePtr<Attr>& ID::GetAttr(AttrTag t) const
|
||||
{
|
||||
return attrs ? attrs->Find(t) : Attr::nil;
|
||||
}
|
||||
|
@ -337,20 +337,12 @@ void ID::AddAttrs(IntrusivePtr<Attributes> a)
|
|||
UpdateValAttrs();
|
||||
}
|
||||
|
||||
void ID::RemoveAttr(attr_tag a)
|
||||
void ID::RemoveAttr(AttrTag a)
|
||||
{
|
||||
if ( attrs )
|
||||
attrs->RemoveAttr(a);
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
void ID::RemoveAttr(::attr_tag a)
|
||||
{
|
||||
RemoveAttr(static_cast<attr_tag>(a));
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
void ID::SetOption()
|
||||
{
|
||||
if ( is_option )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue