mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +00:00
Kernel: Rename Custody::create() => try_create()
The try_ prefix indicates that this may fail. :^)
This commit is contained in:
parent
9a827ad3da
commit
9d801d2345
5 changed files with 18 additions and 19 deletions
|
@ -12,7 +12,7 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
KResultOr<NonnullRefPtr<Custody>> Custody::create(Custody* parent, StringView name, Inode& inode, int mount_flags)
|
||||
KResultOr<NonnullRefPtr<Custody>> Custody::try_create(Custody* parent, StringView name, Inode& inode, int mount_flags)
|
||||
{
|
||||
auto name_kstring = KString::try_create(name);
|
||||
if (!name_kstring)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue