mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Type: use class IntrusivePtr in EnumType
This commit is contained in:
parent
7704d52d28
commit
cc8af19bf9
3 changed files with 11 additions and 25 deletions
|
@ -924,16 +924,16 @@ protected:
|
|||
|
||||
class EnumVal : public Val {
|
||||
public:
|
||||
EnumVal(EnumType* t, int i) : Val(bro_int_t(i), t)
|
||||
{
|
||||
}
|
||||
|
||||
IntrusivePtr<Val> SizeVal() const override;
|
||||
|
||||
protected:
|
||||
friend class Val;
|
||||
friend class EnumType;
|
||||
|
||||
EnumVal(EnumType* t, int i) : Val(bro_int_t(i), t)
|
||||
{
|
||||
}
|
||||
|
||||
void ValDescribe(ODesc* d) const override;
|
||||
IntrusivePtr<Val> DoClone(CloneState* state) override;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue