diff options
-rw-r--r-- | src/lib/hash/comb4p/comb4p.cpp | 2 | ||||
-rw-r--r-- | src/lib/hash/skein/skein_512.cpp | 2 | ||||
-rw-r--r-- | src/lib/x509/x509_ext.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/hash/comb4p/comb4p.cpp b/src/lib/hash/comb4p/comb4p.cpp index f6c20f35e..a6c40b801 100644 --- a/src/lib/hash/comb4p/comb4p.cpp +++ b/src/lib/hash/comb4p/comb4p.cpp @@ -74,7 +74,7 @@ std::unique_ptr<HashFunction> Comb4P::copy_state() const std::unique_ptr<Comb4P> copy(new Comb4P); copy->m_hash1 = m_hash1->copy_state(); copy->m_hash2 = m_hash2->copy_state(); - return std::move(copy); + return copy; } void Comb4P::add_data(const uint8_t input[], size_t length) diff --git a/src/lib/hash/skein/skein_512.cpp b/src/lib/hash/skein/skein_512.cpp index 3bc23a91d..87dee24ba 100644 --- a/src/lib/hash/skein/skein_512.cpp +++ b/src/lib/hash/skein/skein_512.cpp @@ -46,7 +46,7 @@ std::unique_ptr<HashFunction> Skein_512::copy_state() const copy->m_buffer = this->m_buffer; copy->m_buf_pos = this->m_buf_pos; - return std::move(copy); + return copy; } void Skein_512::clear() diff --git a/src/lib/x509/x509_ext.h b/src/lib/x509/x509_ext.h index 11e14e8d6..e8b21ef9b 100644 --- a/src/lib/x509/x509_ext.h +++ b/src/lib/x509/x509_ext.h @@ -207,7 +207,7 @@ class BOTAN_PUBLIC_API(2,0) Extensions final : public ASN1_Object { std::unique_ptr<T> ext(new T); ext->decode_inner(extn_info->second.bits()); - return std::move(ext); + return ext; } } return nullptr; |