Kernel: Make IPv4SocketTuple operator== by reference

No reason for this to copy when comparing equality.
This commit is contained in:
Brian Gianforcaro
2021-09-15 23:47:33 -07:00
committed by Andreas Kling
parent 85d36e56d2
commit b530201111

View File

@@ -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;
};