mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
Kernel: Make IPv4SocketTuple operator== by reference
No reason for this to copy when comparing equality.
This commit is contained in:
committed by
Andreas Kling
parent
85d36e56d2
commit
b530201111
@@ -26,7 +26,7 @@ public:
|
||||
IPv4Address peer_address() const { return m_peer_address; };
|
||||
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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user