mirror of
https://github.com/zeek/zeek.git
synced 2025-10-14 12:38:20 +00:00
Add deprecated version of EnumType::GetVal() to returns EnumVal*, rename IntrusivePtr version to GetEnumVal
This commit is contained in:
parent
fd8db24daf
commit
118605f4ac
24 changed files with 90 additions and 85 deletions
|
@ -709,7 +709,13 @@ public:
|
|||
|
||||
void DescribeReST(ODesc* d, bool roles_only = false) const override;
|
||||
|
||||
const zeek::EnumValPtr& GetVal(bro_int_t i);
|
||||
const zeek::EnumValPtr& GetEnumVal(bro_int_t i);
|
||||
|
||||
[[deprecated("Remove in v4.1. Use GetEnumVal() instead.")]]
|
||||
zeek::EnumVal* GetVal(bro_int_t i)
|
||||
{
|
||||
return GetEnumVal(i).get();
|
||||
}
|
||||
|
||||
protected:
|
||||
void AddNameInternal(const std::string& module_name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue