mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 00:08:54 +00:00
clang: fix -Wpessimizing-move warning
This commit is contained in:
parent
0a1ddc2eff
commit
3cc4428d45
@ -320,7 +320,8 @@ TEST(test_epee_connection, test_lifetime)
|
|||||||
connection_ptr conn;
|
connection_ptr conn;
|
||||||
{
|
{
|
||||||
lock_guard_t guard(shared_conn->lock);
|
lock_guard_t guard(shared_conn->lock);
|
||||||
conn = std::move(shared_conn->conn.lock());
|
conn = shared_conn->conn.lock();
|
||||||
|
shared_conn->conn.reset();
|
||||||
}
|
}
|
||||||
if (conn)
|
if (conn)
|
||||||
conn->cancel();
|
conn->cancel();
|
||||||
|
Loading…
Reference in New Issue
Block a user