Semantic and style cleanups. render() should be const. Use for() loops to

loop through lists rather than while, fix bracket style.


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@358627 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler
2004-10-28 21:22:33 +00:00
parent d58cde9eca
commit a92f6b94dd
3 changed files with 43 additions and 23 deletions

View File

@ -223,11 +223,11 @@ ByteVector APE::Tag::render() const
uint itemCount = 0;
{
Map<const String,Item>::Iterator i = d->itemListMap.begin();
while(i != d->itemListMap.end()) {
data.append(i->second.render());
for(Map<const String, Item>::ConstIterator it = d->itemListMap.begin();
it != d->itemListMap.end(); ++it)
{
data.append(it->second.render());
itemCount++;
i++;
}
}