diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-06-09 10:25:19 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-06-09 10:25:19 +0200 |
commit | 8258b699dbed5af8ce402ae6729666cbb31fb39e (patch) | |
tree | 7396f374262d8ba491febf891182da5934d38b43 /Kernel/FileSystem/Inode.h | |
parent | cdb44be7033f1253c1f4b3e4564de94bd67182da (diff) | |
download | serenity-8258b699dbed5af8ce402ae6729666cbb31fb39e.zip |
Kernel: Use StringView more in Inode and subclasses.
Diffstat (limited to 'Kernel/FileSystem/Inode.h')
-rw-r--r-- | Kernel/FileSystem/Inode.h | 4 |
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; |