mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 10:08:20 +00:00
Make TypePtr::Capture member variables private
The public versions were marked as deprecated for 7.0, and accessors should be used to manage them now.
This commit is contained in:
parent
a53cc4d01b
commit
260a8afebe
2 changed files with 4 additions and 9 deletions
|
@ -599,12 +599,9 @@ TypePtr SetType::ShallowClone() { return make_intrusive<SetType>(indices, elemen
|
|||
|
||||
SetType::~SetType() = default;
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
||||
FuncType::Capture::Capture(detail::IDPtr _id, bool _deep_copy) : id(std::move(_id)), deep_copy(_deep_copy) {
|
||||
is_managed = id ? ZVal::IsManagedType(id->GetType()) : false;
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
FuncType::FuncType(RecordTypePtr arg_args, TypePtr arg_yield, FunctionFlavor arg_flavor)
|
||||
: Type(TYPE_FUNC), args(std::move(arg_args)), arg_types(make_intrusive<TypeList>()), yield(std::move(arg_yield)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue