From 3e07564fb914b55c96d75072aadbe2925986840b Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Thu, 18 Mar 2021 17:12:23 -0700 Subject: [PATCH] better method name: HasCopySemantics() --- src/Func.cc | 2 +- src/Func.h | 2 +- src/broker/Data.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;