diff options
Diffstat (limited to 'Kernel/VM/SharedInodeVMObject.cpp')
-rw-r--r-- | Kernel/VM/SharedInodeVMObject.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/VM/SharedInodeVMObject.cpp b/Kernel/VM/SharedInodeVMObject.cpp index 2114bbbdeb..91e7873fb7 100644 --- a/Kernel/VM/SharedInodeVMObject.cpp +++ b/Kernel/VM/SharedInodeVMObject.cpp @@ -14,14 +14,14 @@ NonnullRefPtr<SharedInodeVMObject> SharedInodeVMObject::create_with_inode(Inode& size_t size = inode.size(); if (auto shared_vmobject = inode.shared_vmobject()) return shared_vmobject.release_nonnull(); - auto vmobject = adopt(*new SharedInodeVMObject(inode, size)); + auto vmobject = adopt_ref(*new SharedInodeVMObject(inode, size)); vmobject->inode().set_shared_vmobject(*vmobject); return vmobject; } RefPtr<VMObject> SharedInodeVMObject::clone() { - return adopt(*new SharedInodeVMObject(*this)); + return adopt_ref(*new SharedInodeVMObject(*this)); } SharedInodeVMObject::SharedInodeVMObject(Inode& inode, size_t size) |