mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +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
|
@ -143,7 +143,7 @@ bool File::UpdateConnectionFields(Connection* conn, bool is_orig)
|
|||
if ( conns->AsTableVal()->Lookup(idx.get()) )
|
||||
return false;
|
||||
|
||||
conns->AsTableVal()->Assign(idx.get(), conn->ConnVal());
|
||||
conns->AsTableVal()->Assign(std::move(idx), conn->ConnVal());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ IntrusivePtr<TableVal> characteristics_to_bro(uint32_t c, uint8_t len)
|
|||
if ( ((c >> i) & 0x1) == 1 )
|
||||
{
|
||||
auto ch = val_mgr->Count((1<<i)&mask);
|
||||
char_set->Assign(ch.get(), 0);
|
||||
char_set->Assign(std::move(ch), 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue