mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:38:11 +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
|
@ -66,10 +66,8 @@ protected:
|
|||
Bitmap m_dirty_pages;
|
||||
};
|
||||
|
||||
template<>
|
||||
inline bool is<InodeVMObject>(const VMObject& vmobject)
|
||||
{
|
||||
return vmobject.is_inode();
|
||||
}
|
||||
|
||||
}
|
||||
AK_BEGIN_TYPE_TRAITS(Kernel::InodeVMObject)
|
||||
static bool is_type(const Kernel::VMObject& vmobject) { return vmobject.is_inode(); }
|
||||
AK_END_TYPE_TRAITS()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue