mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
Kernel: Convert Inode event APIs to use StringViews instead of Strings
These APIs allocate a copy internally anyways, so there's no point to making another one for them.
This commit is contained in:
@@ -202,7 +202,7 @@ void Inode::set_metadata_dirty(bool metadata_dirty)
|
||||
}
|
||||
}
|
||||
|
||||
void Inode::did_add_child(InodeIdentifier, String const& name)
|
||||
void Inode::did_add_child(InodeIdentifier, StringView name)
|
||||
{
|
||||
MutexLocker locker(m_inode_lock);
|
||||
|
||||
@@ -211,7 +211,7 @@ void Inode::did_add_child(InodeIdentifier, String const& name)
|
||||
}
|
||||
}
|
||||
|
||||
void Inode::did_remove_child(InodeIdentifier, String const& name)
|
||||
void Inode::did_remove_child(InodeIdentifier, StringView name)
|
||||
{
|
||||
MutexLocker locker(m_inode_lock);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user