mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
Kernel: Use "new (nothrow)" for SharedInodeVMObject
This commit is contained in:
parent
425195e93f
commit
2dfdaafb23
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ RefPtr<SharedInodeVMObject> SharedInodeVMObject::try_create_with_inode(Inode& in
|
|||
|
||||
RefPtr<VMObject> SharedInodeVMObject::try_clone()
|
||||
{
|
||||
return adopt_ref_if_nonnull(new SharedInodeVMObject(*this));
|
||||
return adopt_ref_if_nonnull(new (nothrow) SharedInodeVMObject(*this));
|
||||
}
|
||||
|
||||
SharedInodeVMObject::SharedInodeVMObject(Inode& inode, size_t size)
|
||||
|
|
Loading…
Add table
Reference in a new issue