Deprecate TypeType::Type(), replace with GetType()

This commit is contained in:
Jon Siwek 2020-05-21 23:10:21 -07:00
parent 863f02744e
commit a0481c0b26
5 changed files with 14 additions and 8 deletions

View file

@ -547,7 +547,13 @@ public:
const IntrusivePtr<BroType>& GetType() const
{ return type; }
template <class T>
IntrusivePtr<T> GetType() const
{ return cast_intrusive<T>(type); }
[[deprecated("Remove in v4.1. Use GetType().")]]
BroType* Type() { return type.get(); }
[[deprecated("Remove in v4.1. Use GetType().")]]
const BroType* Type() const { return type.get(); }
protected: