Kernel: Make TCPSocket::for_each() callback accept a reference

Yay for less arrows!
This commit is contained in:
Sergey Bugaev 2019-08-09 13:26:29 +03:00 committed by Andreas Kling
commit d06f4291a8
Notes: sideshowbarker 2024-07-19 12:47:53 +09:00
3 changed files with 14 additions and 14 deletions

View file

@ -6,7 +6,7 @@
class TCPSocket final : public IPv4Socket {
public:
static void for_each(Function<void(TCPSocket*&)>);
static void for_each(Function<void(TCPSocket&)>);
static NonnullRefPtr<TCPSocket> create(int protocol);
virtual ~TCPSocket() override;