summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Inode.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-06-09 10:25:19 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-06-09 10:25:19 +0200
commit8258b699dbed5af8ce402ae6729666cbb31fb39e (patch)
tree7396f374262d8ba491febf891182da5934d38b43 /Kernel/FileSystem/Inode.h
parentcdb44be7033f1253c1f4b3e4564de94bd67182da (diff)
downloadserenity-8258b699dbed5af8ce402ae6729666cbb31fb39e.zip
Kernel: Use StringView more in Inode and subclasses.
Diffstat (limited to 'Kernel/FileSystem/Inode.h')
-rw-r--r--Kernel/FileSystem/Inode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Inode.h b/Kernel/FileSystem/Inode.h
index 44f3b3666a..b2c56a5a20 100644
--- a/Kernel/FileSystem/Inode.h
+++ b/Kernel/FileSystem/Inode.h
@@ -43,8 +43,8 @@ public:
virtual bool traverse_as_directory(Function<bool(const FS::DirectoryEntry&)>) const = 0;
virtual InodeIdentifier lookup(StringView name) = 0;
virtual ssize_t write_bytes(off_t, ssize_t, const byte* data, FileDescription*) = 0;
- virtual KResult add_child(InodeIdentifier child_id, const String& name, mode_t) = 0;
- virtual KResult remove_child(const String& name) = 0;
+ virtual KResult add_child(InodeIdentifier child_id, const StringView& name, mode_t) = 0;
+ virtual KResult remove_child(const StringView& name) = 0;
virtual size_t directory_entry_count() const = 0;
virtual KResult chmod(mode_t) = 0;
virtual KResult chown(uid_t, gid_t) = 0;