mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Use const references over copying variables (performance-unnecessary-copy-initialization, performance-for-range-copy)
This commit is contained in:
parent
c32566420a
commit
eda1b4a23e
4 changed files with 5 additions and 6 deletions
|
@ -961,8 +961,7 @@ IPAddr SubNetVal::Mask() const
|
|||
|
||||
bool SubNetVal::Contains(const IPAddr& addr) const
|
||||
{
|
||||
IPAddr a(addr);
|
||||
return val.subnet_val->Contains(a);
|
||||
return val.subnet_val->Contains(addr);
|
||||
}
|
||||
|
||||
Val* SubNetVal::DoClone(CloneState* state)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue