Commit 30a0aa26 authored by Rémi Duraffort's avatar Rémi Duraffort

C++: use prefix iterators instead of postfix.

parent edd97944
......@@ -383,7 +383,7 @@ mtime_t chapter_edition_c::Duration() const
if ( sub_chapters.size() )
{
std::vector<chapter_item_c*>::const_iterator index = sub_chapters.end();
index--;
--index;
i_result = (*index)->i_user_end_time;
}
......
......@@ -70,19 +70,19 @@ matroska_segment_c::~matroska_segment_c()
while ( index != stored_editions.end() )
{
delete (*index);
index++;
++index;
}
std::vector<chapter_translation_c*>::iterator indext = translations.begin();
while ( indext != translations.end() )
{
delete (*indext);
indext++;
++indext;
}
std::vector<KaxSegmentFamily*>::iterator indexf = families.begin();
while ( indexf != families.end() )
{
delete (*indexf);
indexf++;
++indexf;
}
}
......
......@@ -124,7 +124,7 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
{
m_epgView->delEvent( item );
delete item;
i--;
--i;
m_events.erase( i + 1 );
}
else
......
......@@ -553,7 +553,7 @@ PLItem * PLModel::findInner( PLItem *root, int i_id, bool b_input ) const
if( childFound )
return childFound;
}
it++;
++it;
}
return NULL;
}
......
......@@ -296,7 +296,7 @@ bool ThemeLoader::extract( const string &fileName )
// Look for winamp2.xml in the resource path
list<string> resPath = pOsFactory->getResourcePath();
list<string>::const_iterator it;
for( it = resPath.begin(); it != resPath.end(); it++ )
for( it = resPath.begin(); it != resPath.end(); ++it )
{
if( findFile( *it, WINAMP2_XML_FILE, xmlFile ) )
break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment