From a51037e64504bec6bcc673dd31436707436a9f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 28 Jul 2015 14:35:14 +0200 Subject: [PATCH] Fix incorrect std::move. --- libp2p/RLPXSocketIO.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libp2p/RLPXSocketIO.cpp b/libp2p/RLPXSocketIO.cpp index deb47a728..aa4df7e20 100644 --- a/libp2p/RLPXSocketIO.cpp +++ b/libp2p/RLPXSocketIO.cpp @@ -1,16 +1,16 @@ /* This file is part of cpp-ethereum. - + cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. - + cpp-ethereum is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - + You should have received a copy of the GNU General Public License along with cpp-ethereum. If not, see . */ @@ -34,7 +34,7 @@ RLPXSocketIO::RLPXSocketIO(unsigned _protCount, RLPXFrameCoder& _coder, bi::tcp: m_flowControl(_flowControl), m_coder(_coder), m_socket(_socket), - m_writers(move(writers(_protCount))), + m_writers(writers(_protCount)), m_egressCapacity(m_flowControl ? _initialCapacity : MaxPacketSize * m_writers.size()) {} @@ -61,11 +61,11 @@ void RLPXSocketIO::send(unsigned _protocolType, unsigned _type, RLPStream& _payl void RLPXSocketIO::doWrite() { m_toSend.clear(); - + size_t capacity; DEV_GUARDED(x_queued) capacity = min(m_egressCapacity, MaxPacketSize); - + size_t active = 0; for (auto const& w: m_writers) if (w.size()) @@ -97,7 +97,7 @@ void RLPXSocketIO::write(size_t _dequed) { if (ec) return; // TCPSocketWriteError - + bool reschedule = false; DEV_GUARDED(x_queued) { @@ -109,4 +109,4 @@ void RLPXSocketIO::write(size_t _dequed) if (reschedule) doWrite(); }); -} \ No newline at end of file +}