diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-11 22:04:53 +0200 |
---|---|---|
committer | Idan Horowitz <idan.horowitz@gmail.com> | 2022-01-12 16:09:09 +0200 |
commit | e236f9d85ab892d1564c18836d1dc1bb069bf311 (patch) | |
tree | cda03d70999b29c688bbb92085df05ca19108b48 /Kernel/FileSystem/Inode.cpp | |
parent | d1d24eaef49d48ce88716e10039e9f63d286f385 (diff) | |
download | serenity-e236f9d85ab892d1564c18836d1dc1bb069bf311.zip |
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.
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 7c6b9acf8f..fef6d3b151 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, 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); |