mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 03:57:35 +00:00
Kernel/DevFS: Make DevFSInode::name() return StringView
This commit is contained in:
parent
6766efff9c
commit
61c1937d02
2 changed files with 7 additions and 7 deletions
|
@ -139,7 +139,7 @@ KResult DevFSInode::truncate(u64)
|
|||
return EPERM;
|
||||
}
|
||||
|
||||
String DevFSLinkInode::name() const
|
||||
StringView DevFSLinkInode::name() const
|
||||
{
|
||||
return m_name;
|
||||
}
|
||||
|
@ -341,7 +341,7 @@ KResult DevFSDeviceInode::chown(uid_t uid, gid_t gid)
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
String DevFSDeviceInode::name() const
|
||||
StringView DevFSDeviceInode::name() const
|
||||
{
|
||||
Locker locker(m_inode_lock);
|
||||
if (m_cached_name.is_null() || m_cached_name.is_empty())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue