From 8430831da344086650228ec2692fa4ff19ffcc60 Mon Sep 17 00:00:00 2001 From: Foo Date: Sat, 23 Mar 2024 19:21:54 +0100 Subject: [PATCH] impl --- src/src/udp/UdpSocket.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/src/udp/UdpSocket.cpp b/src/src/udp/UdpSocket.cpp index f49c48d..4ded931 100644 --- a/src/src/udp/UdpSocket.cpp +++ b/src/src/udp/UdpSocket.cpp @@ -49,7 +49,7 @@ UdpConnected UdpBlocking::connect(const Address &remote_address) { MinimalSocket::connect(getHandler().accessId(), remote_address); } this->transfer(result); - return std::move(result); + return result; } UdpConnected UdpBlocking::connect(std::string *initial_message) { @@ -78,7 +78,7 @@ UdpConnected UdpNonBlocking::connect(const Address &remote_address) { MinimalSocket::connect(getHandler().accessId(), remote_address); } this->transfer(result); - return std::move(result); + return result; } std::optional> @@ -125,14 +125,14 @@ Udp UdpConnectedBlocking::disconnect() { resetHandler(); Udp result(getPortToBind(), getRemoteAddress().getFamily()); result.open(); - return std::move(result); + return result; } Udp UdpConnectedNonBlocking::disconnect() { resetHandler(); Udp result(getPortToBind(), getRemoteAddress().getFamily()); result.open(); - return std::move(result); + return result; } UdpConnected