mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Deprecate ComputeHash(Val*) methods, replace with ComputeHash(Val&)
This commit is contained in:
parent
e5f66cd2e6
commit
e01d2c1b37
9 changed files with 29 additions and 22 deletions
|
@ -14,8 +14,12 @@ public:
|
|||
~CompositeHash();
|
||||
|
||||
// Compute the hash corresponding to the given index val,
|
||||
// or 0 if it fails to typecheck.
|
||||
HashKey* ComputeHash(const Val* v, bool type_check) const;
|
||||
// or nullptr if it fails to typecheck.
|
||||
HashKey* ComputeHash(const Val& v, bool type_check) const;
|
||||
|
||||
[[deprecated("Remove in v4.1. Pass a Val& instead.")]]
|
||||
HashKey* ComputeHash(const Val* v, bool type_check) const
|
||||
{ return ComputeHash(*v, type_check); }
|
||||
|
||||
// Given a hash key, recover the values used to create it.
|
||||
IntrusivePtr<ListVal> RecoverVals(const HashKey* k) const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue