1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:07:36 +00:00

Meta+AK: Make clang-format-10 clean

This commit is contained in:
Ben Wiederhake 2020-09-18 09:49:51 +02:00 committed by Andreas Kling
parent 468a29f4a1
commit 8940bc3503
28 changed files with 315 additions and 313 deletions

View file

@ -33,7 +33,7 @@
class [[gnu::packed]] MACAddress
{
public:
MACAddress() {}
MACAddress() { }
MACAddress(const u8 data[6])
{
__builtin_memcpy(m_data, data, 6);
@ -47,7 +47,7 @@ public:
m_data[4] = e;
m_data[5] = f;
}
~MACAddress() {}
~MACAddress() { }
u8 operator[](int i) const
{
@ -78,7 +78,7 @@ static_assert(sizeof(MACAddress) == 6);
namespace AK {
template <>
template<>
struct Traits<MACAddress> : public GenericTraits<MACAddress> {
static unsigned hash(const MACAddress& address) { return string_hash((const char*)&address, sizeof(address)); }
};