clarifying comments, interface tightening

This commit is contained in:
Vern Paxson 2023-06-16 15:12:25 -07:00 committed by Arne Welzel
parent 1505fd4aa1
commit c0f3403714
5 changed files with 8 additions and 2 deletions

View file

@ -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());