Browse Source

use std::move

pull/1121/head
Jeff 7 years ago
parent
commit
b64878f4fa
  1. 2
      libi2pd/Queue.h

2
libi2pd/Queue.h

@ -32,7 +32,7 @@ namespace util @@ -32,7 +32,7 @@ namespace util
{
std::unique_lock<std::mutex> l(m_QueueMutex);
for (const auto& it: vec)
m_Queue.push (it);
m_Queue.push (std::move(it));
m_NonEmpty.notify_one ();
}
}

Loading…
Cancel
Save