summaryrefslogtreecommitdiff
path: root/src/tag
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-20 19:46:54 +0100
committerMax Kellermann <max@musicpd.org>2018-01-20 19:53:38 +0100
commitb334643b681357fdc0fd7ee737ac83cc4e586040 (patch)
tree261327626c384da081ef2fe5a961de1af278479b /src/tag
parent6e6a0275b547f390067c7ce8b0af8562b4b5f8c6 (diff)
tag/Pool: use C++11 initializers
Diffstat (limited to 'src/tag')
-rw-r--r--src/tag/Pool.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tag/Pool.cxx b/src/tag/Pool.cxx
index df3699d30..2cc7d7484 100644
--- a/src/tag/Pool.cxx
+++ b/src/tag/Pool.cxx
@@ -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;