Fix CID 338448: Uninitialized scalar field (UNINIT_CTOR)

member_not_init_in_gen_ctor: The compiler-generated constructor for this class does not initialize key
This commit is contained in:
Calcitem 2021-08-14 11:50:50 +08:00
parent b669434942
commit 0dbcd2a49e
No known key found for this signature in database
GPG Key ID: F2F7C29E054CFB80
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ namespace CTSL // Concurrent Thread Safe Library
HashNode *next; // Pointer to the next node in the same bucket
#endif
private:
K key; // the key key
K key {0}; // the key key
V value; // the value corresponding to the key
};