diff options
author | Andreas Kling <kling@serenityos.org> | 2022-01-01 22:27:24 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-01-02 18:08:02 +0100 |
commit | c427f8bbeb7f67a6ce16c6197bb4295824fbeebe (patch) | |
tree | 585d1c136ce1e8061eb3c78809b74fccf8fbd3da /Kernel/FileSystem/Inode.cpp | |
parent | db4388f21b87c99ff5d2b83cb3ea87a88a41e7d0 (diff) | |
download | serenity-c427f8bbeb7f67a6ce16c6197bb4295824fbeebe.zip |
Kernel: Always pass InodeIdentifier by value
These objects are small, there are no benefits to passing by reference.
Diffstat (limited to 'Kernel/FileSystem/Inode.cpp')
-rw-r--r-- | Kernel/FileSystem/Inode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Inode.cpp b/Kernel/FileSystem/Inode.cpp index 7a5e220111..7c6b9acf8f 100644 --- a/Kernel/FileSystem/Inode.cpp +++ b/Kernel/FileSystem/Inode.cpp @@ -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); |