mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Deprecate ID::FindAttr(), replace with GetAttr()
This commit is contained in:
parent
bee321711f
commit
5fc78a548c
4 changed files with 14 additions and 9 deletions
6
src/ID.h
6
src/ID.h
|
@ -109,7 +109,11 @@ public:
|
|||
[[deprecated("Remove in 4.1. Use GetAttrs().")]]
|
||||
Attributes* Attrs() const { return attrs.get(); }
|
||||
|
||||
Attr* FindAttr(attr_tag t) const;
|
||||
[[deprecated("Remove in 4.1. Use GetAttr().")]]
|
||||
Attr* FindAttr(attr_tag t) const
|
||||
{ return GetAttr(t).get(); }
|
||||
|
||||
const IntrusivePtr<Attr>& GetAttr(attr_tag t) const;
|
||||
|
||||
bool IsDeprecated() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue