1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -14,8 +14,8 @@ namespace Kernel::Memory {
class MappedROM {
public:
const u8* base() const { return region->vaddr().offset(offset).as_ptr(); }
const u8* end() const { return base() + size; }
u8 const* base() const { return region->vaddr().offset(offset).as_ptr(); }
u8 const* end() const { return base() + size; }
OwnPtr<Region> region;
size_t size { 0 };
size_t offset { 0 };
@ -33,7 +33,7 @@ public:
return {};
}
PhysicalAddress paddr_of(const u8* ptr) const { return paddr.offset(ptr - this->base()); }
PhysicalAddress paddr_of(u8 const* ptr) const { return paddr.offset(ptr - this->base()); }
};
}