diff options
Diffstat (limited to 'AK/IPv4Address.h')
-rw-r--r-- | AK/IPv4Address.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/AK/IPv4Address.h b/AK/IPv4Address.h index 03a6f61cab..8f72f8d3a0 100644 --- a/AK/IPv4Address.h +++ b/AK/IPv4Address.h @@ -89,7 +89,7 @@ public: if (string.is_null()) return {}; - const auto parts = string.split_view('.'); + auto const parts = string.split_view('.'); u32 a {}; u32 b {}; @@ -122,8 +122,8 @@ public: constexpr in_addr_t to_in_addr_t() const { return m_data; } constexpr u32 to_u32() const { return m_data; } - constexpr bool operator==(const IPv4Address& other) const = default; - constexpr bool operator!=(const IPv4Address& other) const = default; + constexpr bool operator==(IPv4Address const& other) const = default; + constexpr bool operator!=(IPv4Address const& other) const = default; constexpr bool is_zero() const { @@ -135,7 +135,7 @@ private: { NetworkOrdered<u32> address(m_data); constexpr auto bits_per_byte = 8; - const auto bits_to_shift = bits_per_byte * int(subnet); + auto const bits_to_shift = bits_per_byte * int(subnet); return (m_data >> bits_to_shift) & 0x0000'00FF; } @@ -146,7 +146,7 @@ static_assert(sizeof(IPv4Address) == 4); template<> struct Traits<IPv4Address> : public GenericTraits<IPv4Address> { - static constexpr unsigned hash(const IPv4Address& address) { return int_hash(address.to_u32()); } + static constexpr unsigned hash(IPv4Address const& address) { return int_hash(address.to_u32()); } }; #ifdef KERNEL |