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

This commit is contained in:
Jon Siwek 2020-05-26 15:31:31 -07:00
parent bee321711f
commit 5fc78a548c
4 changed files with 14 additions and 9 deletions

View file

@ -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;