diff options
Diffstat (limited to 'libtransport')
-rw-r--r-- | libtransport/includes/hicn/transport/auth/crypto_hash.h | 2 | ||||
-rw-r--r-- | libtransport/src/auth/crypto_hash.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libtransport/includes/hicn/transport/auth/crypto_hash.h b/libtransport/includes/hicn/transport/auth/crypto_hash.h index fbe1d5160..9535e07c7 100644 --- a/libtransport/includes/hicn/transport/auth/crypto_hash.h +++ b/libtransport/includes/hicn/transport/auth/crypto_hash.h @@ -40,7 +40,7 @@ class CryptoHash { // Constructors CryptoHash(); CryptoHash(const CryptoHash &other); - CryptoHash(CryptoHash &&other); + CryptoHash(CryptoHash &&other) noexcept; CryptoHash(CryptoHashType hash_type); CryptoHash(const uint8_t *hash, std::size_t size, CryptoHashType hash_type); CryptoHash(const std::vector<uint8_t> &hash, CryptoHashType hash_type); diff --git a/libtransport/src/auth/crypto_hash.cc b/libtransport/src/auth/crypto_hash.cc index 0f6e9ab53..cf781d08e 100644 --- a/libtransport/src/auth/crypto_hash.cc +++ b/libtransport/src/auth/crypto_hash.cc @@ -27,7 +27,7 @@ CryptoHash::CryptoHash(const CryptoHash &other) digest_(other.digest_), digest_size_(other.digest_size_) {} -CryptoHash::CryptoHash(CryptoHash &&other) +CryptoHash::CryptoHash(CryptoHash &&other) noexcept : digest_type_(std::move(other.digest_type_)), digest_(std::move(other.digest_)), digest_size_(other.digest_size_) {} |