Deprecate TableVal::FindAttr(), replace with GetAttr()

This commit is contained in:
Jon Siwek 2020-05-26 15:46:46 -07:00
parent e365105872
commit ce6f69cd19
2 changed files with 11 additions and 5 deletions

View file

@ -930,7 +930,12 @@ public:
ListVal* ConvertToPureList() const; // must be single index type
void SetAttrs(IntrusivePtr<Attributes> attrs);
Attr* FindAttr(attr_tag t) const;
[[deprecated("Remove in v4.1. Use GetAttr().")]]
Attr* FindAttr(attr_tag t) const
{ return GetAttr(t).get(); }
const IntrusivePtr<Attr>& GetAttr(attr_tag t) const;
[[deprecated("Remove in v4.1. Use GetAttrs().")]]
Attributes* Attrs() { return attrs.get(); }