diff options
Diffstat (limited to 'src/tag/Tag.cxx')
-rw-r--r-- | src/tag/Tag.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tag/Tag.cxx b/src/tag/Tag.cxx index 448f3b26a..1b338ae8d 100644 --- a/src/tag/Tag.cxx +++ b/src/tag/Tag.cxx @@ -118,9 +118,9 @@ Tag::GetValue(TagType type) const { assert(type < TAG_NUM_OF_ITEM_TYPES); - for (unsigned i = 0; i < num_items; i++) - if (items[i]->type == type) - return items[i]->value; + for (const auto &item : *this) + if (item.type == type) + return item.value; return nullptr; } |