From: Francesco Chemolli Date: Mon, 21 Sep 2015 13:48:18 +0000 (+0200) Subject: Implement default constructor for hash_link. X-Git-Tag: SQUID_4_0_1~54 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b4693f989b549a7b99bab1f733d7662837e0597;p=thirdparty%2Fsquid.git Implement default constructor for hash_link. --- diff --git a/include/hash.h b/include/hash.h index fd8e4faa5c..0c8c32b1c5 100644 --- a/include/hash.h +++ b/include/hash.h @@ -12,15 +12,16 @@ typedef void HASHFREE(void *); typedef int HASHCMP(const void *, const void *); typedef unsigned int HASHHASH(const void *, unsigned int); -typedef struct _hash_link hash_link; -typedef struct _hash_table hash_table; -struct _hash_link { +class hash_link { +public: + hash_link() : key(nullptr), next(nullptr) {} void *key; hash_link *next; }; -struct _hash_table { +class hash_table { +public: hash_link **buckets; HASHCMP *cmp; HASHHASH *hash;