1
Fork 0
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:
Andreas Kling 2020-07-26 17:15:51 +02:00
parent ce2c5b375c
commit fe6474e692
5 changed files with 14 additions and 31 deletions

View file

@ -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()