diff options
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/Socket.cpp | 4 | ||||
-rw-r--r-- | contrib/Socket.h | 2 | ||||
-rw-r--r-- | contrib/edi/Transport.cpp | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/contrib/Socket.cpp b/contrib/Socket.cpp index 8b8d0e2..159de7e 100644 --- a/contrib/Socket.cpp +++ b/contrib/Socket.cpp @@ -925,13 +925,13 @@ TCPSendClient::~TCPSendClient() } } -void TCPSendClient::sendall(std::vector<uint8_t>&& buffer) +void TCPSendClient::sendall(const std::vector<uint8_t>& buffer) { if (not m_running) { throw runtime_error(m_exception_data); } - m_queue.push(move(buffer)); + m_queue.push(buffer); } void TCPSendClient::process() diff --git a/contrib/Socket.h b/contrib/Socket.h index b342d8b..84def40 100644 --- a/contrib/Socket.h +++ b/contrib/Socket.h @@ -300,7 +300,7 @@ class TCPSendClient { /* Throws a runtime_error on error */ - void sendall(std::vector<uint8_t>&& buffer); + void sendall(const std::vector<uint8_t>& buffer); private: void process(); diff --git a/contrib/edi/Transport.cpp b/contrib/edi/Transport.cpp index c7bde8f..4c91483 100644 --- a/contrib/edi/Transport.cpp +++ b/contrib/edi/Transport.cpp @@ -149,7 +149,7 @@ void Sender::write(const TagPacket& tagpacket) tcp_dispatchers.at(tcp_dest.get())->write(edi_frag); } else if (auto tcp_dest = dynamic_pointer_cast<edi::tcp_client_t>(dest)) { - tcp_senders.at(tcp_dest.get())->sendall(move(edi_frag)); + tcp_senders.at(tcp_dest.get())->sendall(edi_frag); } else { throw logic_error("EDI destination not implemented"); @@ -175,7 +175,7 @@ void Sender::write(const TagPacket& tagpacket) tcp_dispatchers.at(tcp_dest.get())->write(af_packet); } else if (auto tcp_dest = dynamic_pointer_cast<edi::tcp_client_t>(dest)) { - tcp_senders.at(tcp_dest.get())->sendall(move(af_packet)); + tcp_senders.at(tcp_dest.get())->sendall(af_packet); } else { throw logic_error("EDI destination not implemented"); |