]> granicus.if.org Git - taglib/commitdiff
Use the same type name between a List and its iterator.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Wed, 18 Nov 2015 08:58:13 +0000 (17:58 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Wed, 18 Nov 2015 08:58:13 +0000 (17:58 +0900)
taglib/ape/apetag.cpp

index 7be798b047728cc3800393397cf148d3c93383ab..c633d5754fd44962ea17d084618ff4777f95f49b 100644 (file)
@@ -351,13 +351,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);