mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-04 23:57:25 +00:00
Everywhere: Run clang-format
This commit is contained in:
committed by
Linus Groh
parent
0376c127f6
commit
086969277e
@@ -29,7 +29,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==(IPv4SocketTuple const& 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;
|
||||
};
|
||||
@@ -57,7 +57,7 @@ namespace AK {
|
||||
|
||||
template<>
|
||||
struct Traits<Kernel::IPv4SocketTuple> : public GenericTraits<Kernel::IPv4SocketTuple> {
|
||||
static unsigned hash(const Kernel::IPv4SocketTuple& tuple)
|
||||
static unsigned hash(Kernel::IPv4SocketTuple const& tuple)
|
||||
{
|
||||
auto h1 = pair_int_hash(tuple.local_address().to_u32(), tuple.local_port());
|
||||
auto h2 = pair_int_hash(tuple.peer_address().to_u32(), tuple.peer_port());
|
||||
|
||||
Reference in New Issue
Block a user