summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/FileDescription.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/FileSystem/FileDescription.cpp')
-rw-r--r--Kernel/FileSystem/FileDescription.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/FileDescription.cpp b/Kernel/FileSystem/FileDescription.cpp
index 5b0062f74d..1bd5da16a0 100644
--- a/Kernel/FileSystem/FileDescription.cpp
+++ b/Kernel/FileSystem/FileDescription.cpp
@@ -24,7 +24,7 @@
namespace Kernel {
-KResultOr<NonnullRefPtr<FileDescription>> FileDescription::create(Custody& custody)
+KResultOr<NonnullRefPtr<FileDescription>> FileDescription::try_create(Custody& custody)
{
auto inode_file = InodeFile::create(custody.inode());
if (inode_file.is_error())
@@ -43,7 +43,7 @@ KResultOr<NonnullRefPtr<FileDescription>> FileDescription::create(Custody& custo
return description.release_nonnull();
}
-KResultOr<NonnullRefPtr<FileDescription>> FileDescription::create(File& file)
+KResultOr<NonnullRefPtr<FileDescription>> FileDescription::try_create(File& file)
{
auto description = adopt_ref_if_nonnull(new (nothrow) FileDescription(file));
if (!description)