mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 23:25:20 +00:00
Kernel: Make FileSystem::root_inode() return a plain Inode&
All file system classes are expected to keep their root Inode object in memory, so this function can safely return an Inode&.
This commit is contained in:
@@ -30,10 +30,9 @@ bool TmpFS::initialize()
|
||||
return !m_root_inode.is_null();
|
||||
}
|
||||
|
||||
NonnullRefPtr<Inode> TmpFS::root_inode() const
|
||||
Inode& TmpFS::root_inode()
|
||||
{
|
||||
VERIFY(!m_root_inode.is_null());
|
||||
|
||||
return *m_root_inode;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user