mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Merge pull request #7690
3cc4428
clang: fix -Wpessimizing-move warning (selsta)
This commit is contained in:
commit
342f8c8b97
@ -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