Kernel: Use StringView more in Inode and subclasses.

This commit is contained in:
Andreas Kling 2019-06-09 10:25:19 +02:00
parent cdb44be703
commit 8258b699db
Notes: sideshowbarker 2024-07-19 13:40:11 +09:00
7 changed files with 14 additions and 14 deletions

View file

@ -704,7 +704,7 @@ bool Ext2FSInode::traverse_as_directory(Function<bool(const FS::DirectoryEntry&)
return true;
}
KResult Ext2FSInode::add_child(InodeIdentifier child_id, const String& name, mode_t mode)
KResult Ext2FSInode::add_child(InodeIdentifier child_id, const StringView& name, mode_t mode)
{
LOCKER(m_lock);
ASSERT(is_directory());
@ -739,7 +739,7 @@ KResult Ext2FSInode::add_child(InodeIdentifier child_id, const String& name, mod
return KSuccess;
}
KResult Ext2FSInode::remove_child(const String& name)
KResult Ext2FSInode::remove_child(const StringView& name)
{
LOCKER(m_lock);
#ifdef EXT2_DEBUG