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 ...@@ -383,7 +383,7 @@ mtime_t chapter_edition_c::Duration() const
if ( sub_chapters.size() ) if ( sub_chapters.size() )
{ {
std::vector<chapter_item_c*>::const_iterator index = sub_chapters.end(); std::vector<chapter_item_c*>::const_iterator index = sub_chapters.end();
index--; --index;
i_result = (*index)->i_user_end_time; i_result = (*index)->i_user_end_time;
} }
......
...@@ -70,19 +70,19 @@ matroska_segment_c::~matroska_segment_c() ...@@ -70,19 +70,19 @@ matroska_segment_c::~matroska_segment_c()
while ( index != stored_editions.end() ) while ( index != stored_editions.end() )
{ {
delete (*index); delete (*index);
index++; ++index;
} }
std::vector<chapter_translation_c*>::iterator indext = translations.begin(); std::vector<chapter_translation_c*>::iterator indext = translations.begin();
while ( indext != translations.end() ) while ( indext != translations.end() )
{ {
delete (*indext); delete (*indext);
indext++; ++indext;
} }
std::vector<KaxSegmentFamily*>::iterator indexf = families.begin(); std::vector<KaxSegmentFamily*>::iterator indexf = families.begin();
while ( indexf != families.end() ) while ( indexf != families.end() )
{ {
delete (*indexf); delete (*indexf);
indexf++; ++indexf;
} }
} }
......
...@@ -124,7 +124,7 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg ) ...@@ -124,7 +124,7 @@ void EPGWidget::updateEPG( vlc_epg_t **pp_epg, int i_epg )
{ {
m_epgView->delEvent( item ); m_epgView->delEvent( item );
delete item; delete item;
i--; --i;
m_events.erase( i + 1 ); m_events.erase( i + 1 );
} }
else else
......
...@@ -553,7 +553,7 @@ PLItem * PLModel::findInner( PLItem *root, int i_id, bool b_input ) const ...@@ -553,7 +553,7 @@ PLItem * PLModel::findInner( PLItem *root, int i_id, bool b_input ) const
if( childFound ) if( childFound )
return childFound; return childFound;
} }
it++; ++it;
} }
return NULL; return NULL;
} }
......
...@@ -296,7 +296,7 @@ bool ThemeLoader::extract( const string &fileName ) ...@@ -296,7 +296,7 @@ bool ThemeLoader::extract( const string &fileName )
// Look for winamp2.xml in the resource path // Look for winamp2.xml in the resource path
list<string> resPath = pOsFactory->getResourcePath(); list<string> resPath = pOsFactory->getResourcePath();
list<string>::const_iterator it; 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 ) ) if( findFile( *it, WINAMP2_XML_FILE, xmlFile ) )
break; 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