mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-13 00:07:39 +01:00
use std::move
This commit is contained in:
parent
f876cc9079
commit
b64878f4fa
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ namespace util
|
||||||
{
|
{
|
||||||
std::unique_lock<std::mutex> l(m_QueueMutex);
|
std::unique_lock<std::mutex> l(m_QueueMutex);
|
||||||
for (const auto& it: vec)
|
for (const auto& it: vec)
|
||||||
m_Queue.push (it);
|
m_Queue.push (std::move(it));
|
||||||
m_NonEmpty.notify_one ();
|
m_NonEmpty.notify_one ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue