mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
Kernel: Make Inode::create_child() take the name as a StringView
No sense in forcing callers to construct a String. One more small step towards not using String in the kernel.
This commit is contained in:
parent
9359f7801f
commit
6766efff9c
Notes:
sideshowbarker
2024-07-18 08:51:35 +09:00
Author: https://github.com/awesomekling
Commit: 6766efff9c
15 changed files with 17 additions and 17 deletions
|
@ -1164,7 +1164,7 @@ KResult Ext2FSInode::write_directory(Vector<Ext2FSDirectoryEntry>& entries)
|
|||
return KSuccess;
|
||||
}
|
||||
|
||||
KResultOr<NonnullRefPtr<Inode>> Ext2FSInode::create_child(const String& name, mode_t mode, dev_t dev, uid_t uid, gid_t gid)
|
||||
KResultOr<NonnullRefPtr<Inode>> Ext2FSInode::create_child(StringView name, mode_t mode, dev_t dev, uid_t uid, gid_t gid)
|
||||
{
|
||||
if (::is_directory(mode))
|
||||
return fs().create_directory(*this, name, mode, uid, gid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue