diff options
-rw-r--r-- | src/lib/hash/comb4p/comb4p.cpp | 2 | ||||
-rw-r--r-- | src/lib/hash/skein/skein_512.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/hash/comb4p/comb4p.cpp b/src/lib/hash/comb4p/comb4p.cpp index a6c40b801..f6c20f35e 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 copy; + return std::move(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 a3bbde9a7..eaa3090a4 100644 --- a/src/lib/hash/skein/skein_512.cpp +++ b/src/lib/hash/skein/skein_512.cpp @@ -47,7 +47,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 copy; + return std::move(copy); } void Skein_512::clear() |