mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 08:08:19 +00:00
Deprecate Val(Func*) ctor, replace with one using IntrusivePtr
This commit is contained in:
parent
4a2221b878
commit
a031f5b727
7 changed files with 26 additions and 22 deletions
|
@ -845,7 +845,7 @@ const char* CompositeHash::RecoverOneVal(const HashKey* k, const char* kp0,
|
|||
const uint32_t* const kp = AlignType<uint32_t>(kp0);
|
||||
kp1 = reinterpret_cast<const char*>(kp+1);
|
||||
|
||||
Func* f = Func::GetFuncPtrByID(*kp);
|
||||
const auto& f = Func::GetFuncPtrByID(*kp);
|
||||
|
||||
if ( ! f )
|
||||
reporter->InternalError("failed to look up unique function id %" PRIu32 " in CompositeHash::RecoverOneVal()", *kp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue