mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:57:43 +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
|
@ -64,10 +64,8 @@ private:
|
|||
bool m_volatile { false };
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool is<PurgeableVMObject>(const VMObject& vmobject)
|
||||
{
|
||||
return vmobject.is_purgeable();
|
||||
}
|
||||
|
||||
}
|
||||
AK_BEGIN_TYPE_TRAITS(Kernel::PurgeableVMObject)
|
||||
static bool is_type(const Kernel::VMObject& vmobject) { return vmobject.is_purgeable(); }
|
||||
AK_END_TYPE_TRAITS()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue