mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +00:00
AK: Rename adopt() to adopt_ref()
This makes it more symmetrical with adopt_own() (which is used to create a NonnullOwnPtr from the result of a naked new.)
This commit is contained in:
parent
b3db01e20e
commit
b91c49364d
228 changed files with 461 additions and 461 deletions
|
@ -525,7 +525,7 @@ int EventLoop::register_signal(int signo, Function<void(int)> handler)
|
|||
auto& info = *signals_info();
|
||||
auto handlers = info.signal_handlers.find(signo);
|
||||
if (handlers == info.signal_handlers.end()) {
|
||||
auto signal_handlers = adopt(*new SignalHandlers(signo, EventLoop::handle_signal));
|
||||
auto signal_handlers = adopt_ref(*new SignalHandlers(signo, EventLoop::handle_signal));
|
||||
auto handler_id = signal_handlers->add(move(handler));
|
||||
info.signal_handlers.set(signo, move(signal_handlers));
|
||||
return handler_id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue