mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
AK+Kernel: Disallow implicitly lifting pointers to OwnPtr's
This doesn't really _fix_ anything, it just gets rid of the API and instead makes the users explicitly use `adopt_own_if_non_null()`.
This commit is contained in:
parent
3bc2527ce7
commit
2b5732ab77
6 changed files with 27 additions and 20 deletions
|
@ -18,7 +18,7 @@ UNMAP_AFTER_INIT void SpuriousInterruptHandler::initialize(u8 interrupt_number)
|
|||
void SpuriousInterruptHandler::register_handler(GenericInterruptHandler& handler)
|
||||
{
|
||||
VERIFY(!m_real_handler);
|
||||
m_real_handler = &handler;
|
||||
m_real_handler = adopt_own_if_nonnull(&handler);
|
||||
}
|
||||
void SpuriousInterruptHandler::unregister_handler(GenericInterruptHandler&)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue