mirror of
https://github.com/zeek/zeek.git
synced 2025-10-11 02:58:20 +00:00
Fix missing assigmnent operator/copy constructor pairings reported by LGTM
This commit is contained in:
parent
2f2a265415
commit
51f17534d4
3 changed files with 35 additions and 0 deletions
|
@ -33,6 +33,11 @@ struct ConnIDKey {
|
|||
memset(&ip2, 0, sizeof(in6_addr));
|
||||
}
|
||||
|
||||
ConnIDKey(const ConnIDKey& rhs)
|
||||
{
|
||||
*this = rhs;
|
||||
}
|
||||
|
||||
bool operator<(const ConnIDKey& rhs) const { return memcmp(this, &rhs, sizeof(ConnIDKey)) < 0; }
|
||||
bool operator==(const ConnIDKey& rhs) const { return memcmp(this, &rhs, sizeof(ConnIDKey)) == 0; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue