Explorar o código

key_manager: Delete move operations

Prevents the singleton from being moved from.
Lioncash %!s(int64=6) %!d(string=hai) anos
pai
achega
c91710a82f
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/core/crypto/key_manager.h

+ 3 - 0
src/core/crypto/key_manager.h

@@ -231,6 +231,9 @@ public:
     KeyManager(const KeyManager&) = delete;
     KeyManager& operator=(const KeyManager&) = delete;
 
+    KeyManager(KeyManager&&) = delete;
+    KeyManager& operator=(KeyManager&&) = delete;
+
     bool HasKey(S128KeyType id, u64 field1 = 0, u64 field2 = 0) const;
     bool HasKey(S256KeyType id, u64 field1 = 0, u64 field2 = 0) const;