mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 01:51:03 +09:00
Kernel: Use "new (nothrow)" for SharedInodeVMObject
This commit is contained in:
parent
425195e93f
commit
2dfdaafb23
Notes:
sideshowbarker
2024-07-18 09:16:03 +09:00
Author: https://github.com/awesomekling
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
Add a link
Reference in a new issue