mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel: Use StringView more in Inode and subclasses.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 13:40:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8258b699dbe
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user