mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:38:10 +00:00
Kernel: Rename FileDescription::create() => try_create()
This commit is contained in:
parent
31bc9565f8
commit
59335bd8ea
11 changed files with 16 additions and 16 deletions
|
@ -30,7 +30,7 @@ bool File::unref() const
|
|||
|
||||
KResultOr<NonnullRefPtr<FileDescription>> File::open(int options)
|
||||
{
|
||||
auto description = FileDescription::create(*this);
|
||||
auto description = FileDescription::try_create(*this);
|
||||
if (!description.is_error()) {
|
||||
description.value()->set_rw_mode(options);
|
||||
description.value()->set_file_flags(options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue