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

@ -354,7 +354,7 @@ void Ogg::File::writePageGroup(const List<int> &thePageGroup)
// create a gap for the new pages
int numberOfNewPages = pages.back()->header()->pageSequenceNumber() - pageGroup.back();
List<Page *>::Iterator pageIter = d->pages.begin();
List<Page *>::ConstIterator pageIter = d->pages.begin();
for(int i = 0; i < pageGroup.back(); i++) {
if(pageIter != d->pages.end()) {
++pageIter;