tag/Pool: use C++11 initializers

This commit is contained in:
Max Kellermann 2018-01-20 19:46:54 +01:00
parent 6e6a0275b5
commit b334643b68
1 changed files with 2 additions and 2 deletions

View File

@ -37,14 +37,14 @@ static constexpr size_t NUM_SLOTS = 4093;
struct TagPoolSlot {
TagPoolSlot *next;
uint8_t ref;
uint8_t ref = 1;
TagItem item;
static constexpr unsigned MAX_REF = std::numeric_limits<decltype(ref)>::max();
TagPoolSlot(TagPoolSlot *_next, TagType type,
StringView value)
:next(_next), ref(1) {
:next(_next) {
item.type = type;
memcpy(item.value, value.data, value.size);
item.value[value.size] = 0;