mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Deprecate TableVal::Assign methods with Val*, add IntrusivePtr overloads
This commit is contained in:
parent
5bf2ed02d7
commit
7e89c8f0df
22 changed files with 106 additions and 95 deletions
|
@ -952,13 +952,13 @@ const char* CompositeHash::RecoverOneVal(const HashKey* k, const char* kp0,
|
|||
kp1 = RecoverOneVal(k, kp1, k_end, tt->Indices(), &key, false);
|
||||
|
||||
if ( t->IsSet() )
|
||||
tv->Assign(key.get(), nullptr);
|
||||
tv->Assign(std::move(key), nullptr);
|
||||
else
|
||||
{
|
||||
IntrusivePtr<Val> value;
|
||||
kp1 = RecoverOneVal(k, kp1, k_end, tt->Yield().get(), &value,
|
||||
false);
|
||||
tv->Assign(key.get(), std::move(value));
|
||||
tv->Assign(std::move(key), std::move(value));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue