diff options
author | Jack Lloyd <[email protected]> | 2021-04-04 16:24:11 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2021-04-04 16:24:11 -0400 |
commit | f05011a8d5e61752d98a58318ec155f15e749ee3 (patch) | |
tree | 9c61bc65f42157e2d23d80c4f9cdf1677fe30769 | |
parent | 0a54688b4e4bf1c518a3fa1f131db6386db113b8 (diff) |
Fix clang warning re missed copy elision
-rw-r--r-- | src/lib/ffi/ffi_hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffi/ffi_hash.cpp b/src/lib/ffi/ffi_hash.cpp index eba56856e..6020d60bd 100644 --- a/src/lib/ffi/ffi_hash.cpp +++ b/src/lib/ffi/ffi_hash.cpp @@ -76,7 +76,7 @@ int botan_hash_final(botan_hash_t hash, uint8_t out[]) int botan_hash_copy_state(botan_hash_t* dest, const botan_hash_t source) { return BOTAN_FFI_DO(Botan::HashFunction, source, src, { - *dest = new botan_hash_struct(std::move(src.copy_state())); }); + *dest = new botan_hash_struct(src.copy_state()); }); } int botan_hash_name(botan_hash_t hash, char* name, size_t* name_len) |