mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
clarifying comments, interface tightening
This commit is contained in:
parent
1505fd4aa1
commit
c0f3403714
5 changed files with 8 additions and 2 deletions
|
@ -608,6 +608,9 @@ FuncPtr ScriptFunc::DoClone()
|
|||
{
|
||||
// ScriptFunc could hold a closure. In this case a clone of it must
|
||||
// store a copy of this closure.
|
||||
//
|
||||
// We don't use make_intrusive<> directly because we're accessing
|
||||
// a protected constructor.
|
||||
auto other = IntrusivePtr{AdoptRef{}, new ScriptFunc()};
|
||||
|
||||
CopyStateInto(other.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue