aboutsummaryrefslogtreecommitdiff
path: root/tests/unit_tests
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-15 13:09:14 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-08-15 13:38:47 +0000
commit0c8d8f6b2e3b924c396babfa44b699ce09c91fc6 (patch)
tree4978bb62eaec4b5e44e34da36b47b253122263c9 /tests/unit_tests
parentMerge pull request #4129 (diff)
downloadmonero-0c8d8f6b2e3b924c396babfa44b699ce09c91fc6.tar.xz
unit_tests: remove std::move in return statement
This actually prevents copy elision
Diffstat (limited to 'tests/unit_tests')
-rw-r--r--tests/unit_tests/serialization.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp
index 5a2114027..07e15e61e 100644
--- a/tests/unit_tests/serialization.cpp
+++ b/tests/unit_tests/serialization.cpp
@@ -825,7 +825,7 @@ TEST(Serialization, portability_outputs)
return {};
}
crypto::chacha8(ciphertext.data() + sizeof(iv), ciphertext.size() - prefix_size, key, iv, &plaintext[0]);
- return std::move(plaintext);
+ return plaintext;
};
crypto::secret_key view_secret_key;
epee::string_tools::hex_to_pod("339673bb1187e2f73ba7841ab6841c5553f96e9f13f8fe6612e69318db4e9d0a", view_secret_key);