mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 19:45:12 +00: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: https://github.com/SerenityOS/serenity/commit/2dfdaafb23f
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