Fix a mismatch between List and iterator types.

This commit is contained in:
Tsuda Kageyu 2015-11-18 17:50:48 +09:00
parent 0b2a3ce400
commit da7424636b

View File

@ -344,13 +344,9 @@ ByteVector APE::Tag::render() const
ByteVector data;
uint itemCount = 0;
{
for(Map<const String, Item>::ConstIterator it = d->itemListMap.begin();
it != d->itemListMap.end(); ++it)
{
data.append(it->second.render());
itemCount++;
}
for(ItemListMap::ConstIterator it = d->itemListMap.begin(); it != d->itemListMap.end(); ++it) {
data.append(it->second.render());
itemCount++;
}
d->footer.setItemCount(itemCount);