mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:48:14 +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:
parent
d1d24eaef4
commit
e236f9d85a
4 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue