mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
better method name: HasCopySemantics()
This commit is contained in:
parent
a7fcc7a5d8
commit
3e07564fb9
3 changed files with 3 additions and 3 deletions
|
@ -587,7 +587,7 @@ bool ScriptFunc::StrengthenClosureReference(Frame* f)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ScriptFunc::CopySemantics() const
|
bool ScriptFunc::HasCopySemantics() const
|
||||||
{
|
{
|
||||||
return type->GetCaptures().has_value();
|
return type->GetCaptures().has_value();
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,7 +213,7 @@ public:
|
||||||
/**
|
/**
|
||||||
* Whether the function's closure uses copy semantics.
|
* Whether the function's closure uses copy semantics.
|
||||||
*/
|
*/
|
||||||
virtual bool CopySemantics() const;
|
virtual bool HasCopySemantics() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Serializes this function's closure or capture frame.
|
* Serializes this function's closure or capture frame.
|
||||||
|
|
|
@ -411,7 +411,7 @@ struct val_converter {
|
||||||
if ( ! b )
|
if ( ! b )
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
if ( b->CopySemantics() )
|
if ( b->HasCopySemantics() )
|
||||||
{
|
{
|
||||||
if ( ! b->DeserializeCaptures(*frame) )
|
if ( ! b->DeserializeCaptures(*frame) )
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue