mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Kernel: Stop using the make<T> factory method in the Kernel
As make<T> is infallible, it really should not be used anywhere in the Kernel. Instead replace with fallible `new (nothrow)` calls, that will eventually be error-propagated.
This commit is contained in:
parent
e5e7cb822a
commit
8289727fac
6 changed files with 7 additions and 7 deletions
|
@ -63,7 +63,7 @@ public:
|
|||
VMWareBackdoorDetector()
|
||||
{
|
||||
if (detect_presence())
|
||||
m_backdoor = make<VMWareBackdoor>();
|
||||
m_backdoor = adopt_nonnull_own_or_enomem(new (nothrow) VMWareBackdoor()).release_value_but_fixme_should_propagate_errors();
|
||||
}
|
||||
|
||||
VMWareBackdoor* get_instance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue