[map] Initialize key and value explicitly
If they are of int time they won't be initialized otherwise.
This commit is contained in:
parent
1d41b9cb3c
commit
ae080bf202
|
@ -71,12 +71,10 @@ struct hb_hashmap_t
|
||||||
uint32_t is_tombstone_ : 1;
|
uint32_t is_tombstone_ : 1;
|
||||||
V value;
|
V value;
|
||||||
|
|
||||||
item_t ()
|
item_t () : key (),
|
||||||
{
|
hash (0),
|
||||||
hash = 0;
|
is_used_ (false), is_tombstone_ (false),
|
||||||
is_used_ = false;
|
value () {}
|
||||||
is_tombstone_ = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool is_used () const { return is_used_; }
|
bool is_used () const { return is_used_; }
|
||||||
void set_used (bool is_used) { is_used_ = is_used; }
|
void set_used (bool is_used) { is_used_ = is_used; }
|
||||||
|
|
Loading…
Reference in New Issue