mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-28 05:52:53 +00:00
LibCore: Remove ObjectPtr in favor of RefPtr
Now that CObject is fully ref-counted, just use RefPtr everywhere! :^)
This commit is contained in:
parent
bc319d9e88
commit
d6abfbdc5a
Notes:
sideshowbarker
2024-07-19 12:00:45 +09:00
Author: https://github.com/awesomekling
Commit: d6abfbdc5a
71 changed files with 146 additions and 156 deletions
|
@ -29,12 +29,12 @@ HashMap<int, NonnullOwnPtr<CEventLoop::EventLoopTimer>>* CEventLoop::s_timers;
|
|||
HashTable<CNotifier*>* CEventLoop::s_notifiers;
|
||||
int CEventLoop::s_next_timer_id = 1;
|
||||
int CEventLoop::s_wake_pipe_fds[2];
|
||||
ObjectPtr<CLocalServer> CEventLoop::s_rpc_server;
|
||||
RefPtr<CLocalServer> CEventLoop::s_rpc_server;
|
||||
|
||||
class RPCClient : public CObject {
|
||||
C_OBJECT(RPCClient)
|
||||
public:
|
||||
explicit RPCClient(ObjectPtr<CLocalSocket> socket)
|
||||
explicit RPCClient(RefPtr<CLocalSocket> socket)
|
||||
: m_socket(move(socket))
|
||||
{
|
||||
add_child(*m_socket);
|
||||
|
@ -123,7 +123,7 @@ public:
|
|||
}
|
||||
|
||||
private:
|
||||
ObjectPtr<CLocalSocket> m_socket;
|
||||
RefPtr<CLocalSocket> m_socket;
|
||||
};
|
||||
|
||||
CEventLoop::CEventLoop()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue