mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 23:58:20 +00:00
Deprecate Func::FType(), replace with Func::GetType()
This commit is contained in:
parent
0f5bb4b83d
commit
688bed97bc
9 changed files with 37 additions and 28 deletions
4
src/ID.h
4
src/ID.h
|
@ -51,6 +51,10 @@ 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 IsType() and GetType().")]]
|
||||
BroType* AsType() { return is_type ? GetType().get() : nullptr; }
|
||||
[[deprecated("Remove in v4.1. Use IsType() and GetType().")]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue