mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10: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
|
@ -719,7 +719,7 @@ SwitchStmt::~SwitchStmt()
|
|||
|
||||
bool SwitchStmt::AddCaseLabelValueMapping(const Val* v, int idx)
|
||||
{
|
||||
HashKey* hk = comp_hash->ComputeHash(v, true);
|
||||
HashKey* hk = comp_hash->ComputeHash(*v, true);
|
||||
|
||||
if ( ! hk )
|
||||
{
|
||||
|
@ -763,7 +763,7 @@ std::pair<int, ID*> SwitchStmt::FindCaseLabelMatch(const Val* v) const
|
|||
// Find matching expression cases.
|
||||
if ( case_label_value_map.Length() )
|
||||
{
|
||||
HashKey* hk = comp_hash->ComputeHash(v, true);
|
||||
HashKey* hk = comp_hash->ComputeHash(*v, true);
|
||||
|
||||
if ( ! hk )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue