mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 01:28:20 +00:00
Change protected EnumVal ctor to use IntrusivePtr
This commit is contained in:
parent
440b0623ac
commit
902f93671c
2 changed files with 4 additions and 5 deletions
|
@ -1011,9 +1011,8 @@ protected:
|
|||
template<class T, class... Ts>
|
||||
friend IntrusivePtr<T> make_intrusive(Ts&&... args);
|
||||
|
||||
EnumVal(EnumType* t, int i) : Val(bro_int_t(i), {NewRef{}, t})
|
||||
{
|
||||
}
|
||||
EnumVal(IntrusivePtr<EnumType> t, int i) : Val(bro_int_t(i), std::move(t))
|
||||
{}
|
||||
|
||||
void ValDescribe(ODesc* d) const override;
|
||||
IntrusivePtr<Val> DoClone(CloneState* state) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue