mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +00:00
Kernel: Use move semantics in sys$sendfd()
Avoid an unnecessary NonnullRefPtr<OpenFileDescription> copy.
This commit is contained in:
parent
422d725c79
commit
b6efd66d56
3 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ public:
|
|||
static KResultOr<SocketPair> try_create_connected_pair(int type);
|
||||
virtual ~LocalSocket() override;
|
||||
|
||||
KResult sendfd(const OpenFileDescription& socket_description, OpenFileDescription& passing_description);
|
||||
KResult sendfd(OpenFileDescription const& socket_description, NonnullRefPtr<OpenFileDescription> passing_description);
|
||||
KResultOr<NonnullRefPtr<OpenFileDescription>> recvfd(const OpenFileDescription& socket_description);
|
||||
|
||||
static void for_each(Function<void(const LocalSocket&)>);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue