diff options
author | selsta <selsta@sent.at> | 2021-04-27 06:28:24 +0200 |
---|---|---|
committer | selsta <selsta@sent.at> | 2021-04-28 11:33:37 +0200 |
commit | 3cc4428d45c830e2f181b4ec608ae2cca4103887 (patch) | |
tree | 36b79ddfade6db6a1cd702205640ab0059e2d0ca /tests/unit_tests/epee_boosted_tcp_server.cpp | |
parent | Merge pull request #7669 (diff) | |
download | monero-3cc4428d45c830e2f181b4ec608ae2cca4103887.tar.xz |
clang: fix -Wpessimizing-move warning
Diffstat (limited to '')
-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(); |