summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/ProcFS.h
diff options
context:
space:
mode:
Diffstat (limited to 'Kernel/FileSystem/ProcFS.h')
-rw-r--r--Kernel/FileSystem/ProcFS.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/FileSystem/ProcFS.h b/Kernel/FileSystem/ProcFS.h
index b0b9e4b6fa..1b8b1b833b 100644
--- a/Kernel/FileSystem/ProcFS.h
+++ b/Kernel/FileSystem/ProcFS.h
@@ -132,7 +132,7 @@ private:
ProcFSProxyInode(ProcFS&, FileDescription&);
static NonnullRefPtr<ProcFSProxyInode> create(ProcFS& fs, FileDescription& fd)
{
- return adopt(*new ProcFSProxyInode(fs, fd));
+ return adopt_ref(*new ProcFSProxyInode(fs, fd));
}
NonnullRefPtr<FileDescription> m_fd;