Type: use class IntrusivePtr in EnumType

This commit is contained in:
Max Kellermann 2020-03-03 16:51:15 +01:00
parent 7704d52d28
commit cc8af19bf9
3 changed files with 11 additions and 25 deletions

View file

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