mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Prevent unnecessary copies in Spicy bindings
This commit is contained in:
parent
7f1d3ae559
commit
a4ab0af70d
6 changed files with 17 additions and 17 deletions
|
@ -705,7 +705,7 @@ inline ValPtr to_val(const hilti::rt::Vector<T>& v, const TypePtr& target) {
|
|||
for ( const auto& i : v )
|
||||
zv->Assign(zv->Size(), to_val(i, vt->Yield()));
|
||||
|
||||
return zv;
|
||||
return std::move(zv);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue