diff --git a/src/crypto/crypto_keys.h b/src/crypto/crypto_keys.h index f18e3b023c0d34..f96b0c7ea9c6f5 100644 --- a/src/crypto/crypto_keys.h +++ b/src/crypto/crypto_keys.h @@ -127,7 +127,7 @@ class KeyObjectData final : public MemoryRetainer { KeyObjectData(KeyType type, std::shared_ptr mutex, std::shared_ptr data) - : key_type_(type), mutex_(mutex), data_(data) {} + : key_type_(type), mutex_(std::move(mutex)), data_(std::move(data)) {} }; class KeyObjectHandle : public BaseObject {