diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:58:34 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:58:34 -0500 |
commit | 342f8c8b97eef8bc5d30ca573e7d0fa86ba3817c (patch) | |
tree | f4386fe41b5ac7a271634a977ab3e710835e1e19 /tests | |
parent | Merge pull request #7688 (diff) | |
parent | clang: fix -Wpessimizing-move warning (diff) | |
download | monero-342f8c8b97eef8bc5d30ca573e7d0fa86ba3817c.tar.xz |
Merge pull request #7690
3cc4428 clang: fix -Wpessimizing-move warning (selsta)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/epee_boosted_tcp_server.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/epee_boosted_tcp_server.cpp b/tests/unit_tests/epee_boosted_tcp_server.cpp index 84fc0a29b..d10b2bb33 100644 --- a/tests/unit_tests/epee_boosted_tcp_server.cpp +++ b/tests/unit_tests/epee_boosted_tcp_server.cpp @@ -320,7 +320,8 @@ TEST(test_epee_connection, test_lifetime) connection_ptr conn; { 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) conn->cancel(); |