diff --git a/src/Func.cc b/src/Func.cc index f24154d1a5..a01362c05e 100644 --- a/src/Func.cc +++ b/src/Func.cc @@ -587,7 +587,7 @@ bool ScriptFunc::StrengthenClosureReference(Frame* f) return true; } -bool ScriptFunc::CopySemantics() const +bool ScriptFunc::HasCopySemantics() const { return type->GetCaptures().has_value(); } diff --git a/src/Func.h b/src/Func.h index 9729fbca1d..b76603eba0 100644 --- a/src/Func.h +++ b/src/Func.h @@ -213,7 +213,7 @@ public: /** * Whether the function's closure uses copy semantics. */ - virtual bool CopySemantics() const; + virtual bool HasCopySemantics() const; /** * Serializes this function's closure or capture frame. diff --git a/src/broker/Data.cc b/src/broker/Data.cc index db372de6fe..6395796801 100644 --- a/src/broker/Data.cc +++ b/src/broker/Data.cc @@ -411,7 +411,7 @@ struct val_converter { if ( ! b ) return nullptr; - if ( b->CopySemantics() ) + if ( b->HasCopySemantics() ) { if ( ! b->DeserializeCaptures(*frame) ) return nullptr;