mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 18:53:14 +00:00
unit_tests: remove std::move in return statement
This actually prevents copy elision
This commit is contained in:
parent
0dddfeacc9
commit
0c8d8f6b2e
1 changed files with 1 additions and 1 deletions
|
@ -825,7 +825,7 @@ TEST(Serialization, portability_outputs)
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
crypto::chacha8(ciphertext.data() + sizeof(iv), ciphertext.size() - prefix_size, key, iv, &plaintext[0]);
|
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;
|
crypto::secret_key view_secret_key;
|
||||||
epee::string_tools::hex_to_pod("339673bb1187e2f73ba7841ab6841c5553f96e9f13f8fe6612e69318db4e9d0a", view_secret_key);
|
epee::string_tools::hex_to_pod("339673bb1187e2f73ba7841ab6841c5553f96e9f13f8fe6612e69318db4e9d0a", view_secret_key);
|
||||||
|
|
Loading…
Reference in a new issue