summaryrefslogtreecommitdiff
path: root/src/BtInterestedMessage.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2013-08-25 18:00:46 +0200
committerNils Maier <maierman@web.de>2013-09-20 23:06:49 +0200
commit3590077d5c43d492b3e357d1a50afca4a7d1cfcf (patch)
tree592516aa08b74c7e90c41a9b50c227f3f5b877b0 /src/BtInterestedMessage.cc
parenta76eeb2b8106dd725097750c3ee4958e505e3c85 (diff)
More auto-converts by cpp11-migrate
Diffstat (limited to 'src/BtInterestedMessage.cc')
-rw-r--r--src/BtInterestedMessage.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/BtInterestedMessage.cc b/src/BtInterestedMessage.cc
index a2fbc6b6..2ef30600 100644
--- a/src/BtInterestedMessage.cc
+++ b/src/BtInterestedMessage.cc
@@ -72,8 +72,8 @@ bool BtInterestedMessage::sendPredicate() const
namespace {
struct ThisProgressUpdate : public ProgressUpdate {
- ThisProgressUpdate(const std::shared_ptr<Peer>& peer)
- : peer(peer) {}
+ ThisProgressUpdate(std::shared_ptr<Peer> peer)
+ : peer(std::move(peer)) {}
virtual void update(size_t length, bool complete) CXX11_OVERRIDE
{
if(complete) {