summaryrefslogtreecommitdiff
path: root/Kernel/Net/LocalSocket.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-09-15 21:09:47 +0200
committerAndreas Kling <kling@serenityos.org>2021-09-15 21:09:47 +0200
commitb6efd66d563a2d378e6b40a313c1b50808f78f0d (patch)
tree02793f3f8202944148125dbc0562dbc7a27cf430 /Kernel/Net/LocalSocket.h
parent422d725c79fdb95ff67292e1d6a04a6518d277ff (diff)
downloadserenity-b6efd66d563a2d378e6b40a313c1b50808f78f0d.zip
Kernel: Use move semantics in sys$sendfd()
Avoid an unnecessary NonnullRefPtr<OpenFileDescription> copy.
Diffstat (limited to 'Kernel/Net/LocalSocket.h')
-rw-r--r--Kernel/Net/LocalSocket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Net/LocalSocket.h b/Kernel/Net/LocalSocket.h
index 96e0322f6b..f1327944e0 100644
--- a/Kernel/Net/LocalSocket.h
+++ b/Kernel/Net/LocalSocket.h
@@ -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&)>);