1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-16 20:15:07 +00:00

Kernel: Always pass InodeIdentifier by value

These objects are small, there are no benefits to passing by reference.
This commit is contained in:
Andreas Kling 2022-01-01 22:27:24 +01:00
parent db4388f21b
commit c427f8bbeb
2 changed files with 4 additions and 4 deletions

View file

@ -202,7 +202,7 @@ void Inode::set_metadata_dirty(bool metadata_dirty)
}
}
void Inode::did_add_child(InodeIdentifier const&, String const& name)
void Inode::did_add_child(InodeIdentifier, String const& name)
{
MutexLocker locker(m_inode_lock);
@ -211,7 +211,7 @@ void Inode::did_add_child(InodeIdentifier const&, String const& name)
}
}
void Inode::did_remove_child(InodeIdentifier const&, String const& name)
void Inode::did_remove_child(InodeIdentifier, String const& name)
{
MutexLocker locker(m_inode_lock);