Skip to content

Commit

Permalink
fix(WebTunnel): rvalue issue
Browse files Browse the repository at this point in the history
  • Loading branch information
obiltschnig committed Nov 16, 2024
1 parent 2ccfce5 commit 54bd23d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WebTunnel/include/Poco/WebTunnel/SocketDispatcher.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class WebTunnel_API SocketDispatcher: public Poco::Runnable
void removeSocketImpl(const Poco::Net::StreamSocket& socket);
void closeSocketImpl(Poco::Net::StreamSocket& socket);
void resetImpl();
void sendBytesImpl(Poco::Net::StreamSocket& socket, Poco::Buffer<char>& buffer, int flags);
void sendBytesImpl(Poco::Net::StreamSocket& socket, Poco::Buffer<char>&& buffer, int flags);
void shutdownSendImpl(Poco::Net::StreamSocket& socket);
bool stopped();
bool inDispatcherThread() const;
Expand Down
4 changes: 2 additions & 2 deletions WebTunnel/src/SocketDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ class SendBytesNotification: public TaskNotification
{
AutoSetEvent ase(_done);

_dispatcher.sendBytesImpl(_socket, _buffer, _options);
_dispatcher.sendBytesImpl(_socket, std::move(_buffer), _options);
}

private:
Expand Down Expand Up @@ -635,7 +635,7 @@ void SocketDispatcher::resetImpl()
}


void SocketDispatcher::sendBytesImpl(Poco::Net::StreamSocket& socket, Poco::Buffer<char>& buffer, int options)
void SocketDispatcher::sendBytesImpl(Poco::Net::StreamSocket& socket, Poco::Buffer<char>&& buffer, int options)
{
auto it = _socketMap.find(socket);
if (it != _socketMap.end())
Expand Down

0 comments on commit 54bd23d

Please sign in to comment.