summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Inode.cpp
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-11 22:04:53 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-12 16:09:09 +0200
commite236f9d85ab892d1564c18836d1dc1bb069bf311 (patch)
treecda03d70999b29c688bbb92085df05ca19108b48 /Kernel/FileSystem/Inode.cpp
parentd1d24eaef49d48ce88716e10039e9f63d286f385 (diff)
downloadserenity-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.cpp4
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);