mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Deprecate Attributes::FindAttr(), replace with Find()
This commit is contained in:
parent
6daa33364b
commit
bee321711f
10 changed files with 46 additions and 33 deletions
|
@ -38,6 +38,8 @@ typedef enum {
|
|||
|
||||
class Attr final : public BroObj {
|
||||
public:
|
||||
static inline const IntrusivePtr<Attr> nil;
|
||||
|
||||
Attr(attr_tag t, IntrusivePtr<Expr> e);
|
||||
explicit Attr(attr_tag t);
|
||||
~Attr() override;
|
||||
|
@ -93,8 +95,11 @@ public:
|
|||
[[deprecated("Remove in v4.1. Pass IntrusivePtr instead.")]]
|
||||
void AddAttrs(Attributes* a); // Unref's 'a' when done
|
||||
|
||||
[[deprecated("Remove in v4.1. Use Find().")]]
|
||||
Attr* FindAttr(attr_tag t) const;
|
||||
|
||||
const IntrusivePtr<Attr>& Find(attr_tag t) const;
|
||||
|
||||
void RemoveAttr(attr_tag t);
|
||||
|
||||
void Describe(ODesc* d) const override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue