mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
Deprecate Val(BroFile*) ctor, replace with one using IntrusivePtr
This commit is contained in:
parent
a031f5b727
commit
65aad4922d
9 changed files with 25 additions and 19 deletions
|
@ -133,9 +133,11 @@ public:
|
|||
explicit Val(Func* f);
|
||||
explicit Val(IntrusivePtr<Func> f);
|
||||
|
||||
// Note, will unref 'f' when it's done, closing it unless
|
||||
// class has ref'd it.
|
||||
[[deprecated("Remove in v4.1. Construct from IntrusivePtr instead.")]]
|
||||
explicit Val(BroFile* f);
|
||||
// Note, the file will be closed after this Val is destructed if there's
|
||||
// no other remaining references.
|
||||
explicit Val(IntrusivePtr<BroFile> f);
|
||||
|
||||
// Extra arg to differentiate from protected version.
|
||||
Val(IntrusivePtr<BroType> t, bool type_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue