Reduce useless detach operations by making some non-const iterators const.

This commit is contained in:
Tsuda Kageyu
2014-08-21 16:35:35 +09:00
parent d5e3d6ea7c
commit 2971891c69
16 changed files with 38 additions and 38 deletions

View File

@ -329,7 +329,7 @@ public:
uint read(TagLib::File &file, uint limit)
{
uint sumcount = 0;
for(List<Reader*>::Iterator i = m_readers.begin();
for(List<Reader*>::ConstIterator i = m_readers.begin();
limit > 0 && i != m_readers.end(); ++ i) {
uint count = (*i)->read(file, limit);
limit -= count;