mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 18:07:34 +00:00
Kernel: Make IPv4SocketTuple operator== by reference
No reason for this to copy when comparing equality.
This commit is contained in:
parent
85d36e56d2
commit
b530201111
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ public:
|
||||||
IPv4Address peer_address() const { return m_peer_address; };
|
IPv4Address peer_address() const { return m_peer_address; };
|
||||||
u16 peer_port() const { return m_peer_port; };
|
u16 peer_port() const { return m_peer_port; };
|
||||||
|
|
||||||
bool operator==(const IPv4SocketTuple other) const
|
bool operator==(const IPv4SocketTuple& other) const
|
||||||
{
|
{
|
||||||
return other.local_address() == m_local_address && other.local_port() == m_local_port && other.peer_address() == m_peer_address && other.peer_port() == m_peer_port;
|
return other.local_address() == m_local_address && other.local_port() == m_local_port && other.peer_address() == m_peer_address && other.peer_port() == m_peer_port;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue