mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:28:12 +00:00
Kernel: Switch to using AK::is and AK::downcast
This commit is contained in:
parent
ce2c5b375c
commit
fe6474e692
5 changed files with 14 additions and 31 deletions
|
@ -51,10 +51,8 @@ private:
|
|||
virtual bool is_contiguous() const override { return true; }
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool is<ContiguousVMObject>(const VMObject& vmobject)
|
||||
{
|
||||
return vmobject.is_contiguous();
|
||||
}
|
||||
|
||||
}
|
||||
AK_BEGIN_TYPE_TRAITS(Kernel::ContiguousVMObject)
|
||||
static bool is_type(const Kernel::VMObject& vmobject) { return vmobject.is_contiguous(); }
|
||||
AK_END_TYPE_TRAITS()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue