Explorar o código

key_manager: Make use of canonical deleted operator=

operator= typically returns a reference, it's not void.

While we're at it, we can correct the parameter formatting to adhere to the
codebase.
Lioncash %!s(int64=6) %!d(string=hai) anos
pai
achega
00a1d106bd
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/core/crypto/key_manager.h

+ 2 - 2
src/core/crypto/key_manager.h

@@ -228,8 +228,8 @@ public:
         return instance;
     }
 
-    KeyManager(KeyManager const&) = delete;
-    void operator=(KeyManager const&) = delete;
+    KeyManager(const KeyManager&) = delete;
+    KeyManager& operator=(const KeyManager&) = delete;
 
     bool HasKey(S128KeyType id, u64 field1 = 0, u64 field2 = 0) const;
     bool HasKey(S256KeyType id, u64 field1 = 0, u64 field2 = 0) const;