mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 15:48:19 +00:00
Deprecate ID::Attrs(), replace with GetAttrs()
This commit is contained in:
parent
28b4206519
commit
2ebc20a164
3 changed files with 9 additions and 4 deletions
5
src/ID.h
5
src/ID.h
|
@ -102,6 +102,11 @@ public:
|
|||
void AddAttrs(IntrusivePtr<Attributes> attr);
|
||||
void RemoveAttr(attr_tag a);
|
||||
void UpdateValAttrs();
|
||||
|
||||
const IntrusivePtr<Attributes>& GetAttrs() const
|
||||
{ return attrs; }
|
||||
|
||||
[[deprecated("Remove in 4.1. Use GetAttrs().")]]
|
||||
Attributes* Attrs() const { return attrs.get(); }
|
||||
|
||||
Attr* FindAttr(attr_tag t) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue