Commit 72af6adc authored by Rémi Duraffort's avatar Rémi Duraffort

C++: use postfix operator for interators (that's supposedly faster and a good practice).

parent 1be41cae
...@@ -1014,7 +1014,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys, ...@@ -1014,7 +1014,7 @@ static int OpenDevice( vlc_object_t *p_this, access_sys_t *p_sys,
return VLC_EGENERIC; return VLC_EGENERIC;
list<string>::iterator iter; list<string>::iterator iter;
for( iter = list_devices.begin(); iter != list_devices.end(); iter++ ) for( iter = list_devices.begin(); iter != list_devices.end(); ++iter )
msg_Dbg( p_this, "found device: %s", iter->c_str() ); msg_Dbg( p_this, "found device: %s", iter->c_str() );
/* If no device name was specified, pick the 1st one */ /* If no device name was specified, pick the 1st one */
...@@ -2043,7 +2043,7 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name, ...@@ -2043,7 +2043,7 @@ static int FindDevicesCallback( vlc_object_t *p_this, char const *psz_name,
list<string>::iterator iter; list<string>::iterator iter;
for( iter = list_devices.begin(), i = 2; iter != list_devices.end(); for( iter = list_devices.begin(), i = 2; iter != list_devices.end();
iter++, i++ ) ++iter, i++ )
{ {
p_item->ppsz_list[i] = strdup( iter->c_str() ); p_item->ppsz_list[i] = strdup( iter->c_str() );
p_item->ppsz_list_text[i] = NULL; p_item->ppsz_list_text[i] = NULL;
......
...@@ -94,7 +94,7 @@ bool dvd_chapter_codec_c::Enter() ...@@ -94,7 +94,7 @@ bool dvd_chapter_codec_c::Enter()
f_result |= sys.dvd_interpretor.Interpret( p_data ); f_result |= sys.dvd_interpretor.Interpret( p_data );
} }
} }
index++; ++index;
} }
return f_result; return f_result;
} }
...@@ -117,7 +117,7 @@ bool dvd_chapter_codec_c::Leave() ...@@ -117,7 +117,7 @@ bool dvd_chapter_codec_c::Leave()
f_result |= sys.dvd_interpretor.Interpret( p_data ); f_result |= sys.dvd_interpretor.Interpret( p_data );
} }
} }
index++; ++index;
} }
return f_result; return f_result;
} }
...@@ -772,7 +772,7 @@ bool matroska_script_codec_c::Enter() ...@@ -772,7 +772,7 @@ bool matroska_script_codec_c::Enter()
msg_Dbg( &sys.demuxer, "Matroska Script enter command" ); msg_Dbg( &sys.demuxer, "Matroska Script enter command" );
f_result |= interpretor.Interpret( (*index)->GetBuffer(), (*index)->GetSize() ); f_result |= interpretor.Interpret( (*index)->GetBuffer(), (*index)->GetSize() );
} }
index++; ++index;
} }
return f_result; return f_result;
} }
...@@ -788,7 +788,7 @@ bool matroska_script_codec_c::Leave() ...@@ -788,7 +788,7 @@ bool matroska_script_codec_c::Leave()
msg_Dbg( &sys.demuxer, "Matroska Script leave command" ); msg_Dbg( &sys.demuxer, "Matroska Script leave command" );
f_result |= interpretor.Interpret( (*index)->GetBuffer(), (*index)->GetSize() ); f_result |= interpretor.Interpret( (*index)->GetBuffer(), (*index)->GetSize() );
} }
index++; ++index;
} }
return f_result; return f_result;
} }
......
...@@ -53,19 +53,19 @@ public: ...@@ -53,19 +53,19 @@ public:
while ( indexe != enter_cmds.end() ) while ( indexe != enter_cmds.end() )
{ {
delete (*indexe); delete (*indexe);
indexe++; ++indexe;
} }
std::vector<KaxChapterProcessData*>::iterator indexl = leave_cmds.begin(); std::vector<KaxChapterProcessData*>::iterator indexl = leave_cmds.begin();
while ( indexl != leave_cmds.end() ) while ( indexl != leave_cmds.end() )
{ {
delete (*indexl); delete (*indexl);
indexl++; ++indexl;
} }
std::vector<KaxChapterProcessData*>::iterator indexd = during_cmds.begin(); std::vector<KaxChapterProcessData*>::iterator indexd = during_cmds.begin();
while ( indexd != during_cmds.end() ) while ( indexd != during_cmds.end() )
{ {
delete (*indexd); delete (*indexd);
indexd++; ++indexd;
} }
} }
......
...@@ -32,13 +32,13 @@ chapter_item_c::~chapter_item_c() ...@@ -32,13 +32,13 @@ chapter_item_c::~chapter_item_c()
while ( index != codecs.end() ) while ( index != codecs.end() )
{ {
delete (*index); delete (*index);
index++; ++index;
} }
std::vector<chapter_item_c*>::iterator index_ = sub_chapters.begin(); std::vector<chapter_item_c*>::iterator index_ = sub_chapters.begin();
while ( index_ != sub_chapters.end() ) while ( index_ != sub_chapters.end() )
{ {
delete (*index_); delete (*index_);
index_++; ++index_;
} }
} }
...@@ -91,7 +91,7 @@ chapter_item_c *chapter_item_c::BrowseCodecPrivate( unsigned int codec_id, ...@@ -91,7 +91,7 @@ chapter_item_c *chapter_item_c::BrowseCodecPrivate( unsigned int codec_id,
{ {
if ( match( **index ,p_cookie, i_cookie_size ) ) if ( match( **index ,p_cookie, i_cookie_size ) )
return this; return this;
index++; ++index;
} }
// sub-chapters // sub-chapters
...@@ -102,7 +102,7 @@ chapter_item_c *chapter_item_c::BrowseCodecPrivate( unsigned int codec_id, ...@@ -102,7 +102,7 @@ chapter_item_c *chapter_item_c::BrowseCodecPrivate( unsigned int codec_id,
p_result = (*index2)->BrowseCodecPrivate( codec_id, match, p_cookie, i_cookie_size ); p_result = (*index2)->BrowseCodecPrivate( codec_id, match, p_cookie, i_cookie_size );
if ( p_result != NULL ) if ( p_result != NULL )
return p_result; return p_result;
index2++; ++index2;
} }
return p_result; return p_result;
...@@ -158,7 +158,7 @@ std::string chapter_item_c::GetCodecName( bool f_for_title ) const ...@@ -158,7 +158,7 @@ std::string chapter_item_c::GetCodecName( bool f_for_title ) const
result = (*index)->GetCodecName( f_for_title ); result = (*index)->GetCodecName( f_for_title );
if ( result != "" ) if ( result != "" )
break; break;
index++; ++index;
} }
return result; return result;
...@@ -174,7 +174,7 @@ int16 chapter_item_c::GetTitleNumber( ) const ...@@ -174,7 +174,7 @@ int16 chapter_item_c::GetTitleNumber( ) const
result = (*index)->GetTitleNumber( ); result = (*index)->GetTitleNumber( );
if ( result >= 0 ) if ( result >= 0 )
break; break;
index++; ++index;
} }
return result; return result;
...@@ -189,7 +189,7 @@ int64_t chapter_item_c::RefreshChapters( bool b_ordered, int64_t i_prev_user_tim ...@@ -189,7 +189,7 @@ int64_t chapter_item_c::RefreshChapters( bool b_ordered, int64_t i_prev_user_tim
while ( index != sub_chapters.end() ) while ( index != sub_chapters.end() )
{ {
i_user_time = (*index)->RefreshChapters( b_ordered, i_user_time ); i_user_time = (*index)->RefreshChapters( b_ordered, i_user_time );
index++; ++index;
} }
if ( b_ordered ) if ( b_ordered )
...@@ -243,7 +243,7 @@ chapter_item_c *chapter_item_c::FindTimecode( mtime_t i_user_timecode, const cha ...@@ -243,7 +243,7 @@ chapter_item_c *chapter_item_c::FindTimecode( mtime_t i_user_timecode, const cha
while ( index != sub_chapters.end() && ((p_current == NULL && psz_result == NULL) || (p_current != NULL && (!b_found || psz_result == NULL)))) while ( index != sub_chapters.end() && ((p_current == NULL && psz_result == NULL) || (p_current != NULL && (!b_found || psz_result == NULL))))
{ {
psz_result = (*index)->FindTimecode( i_user_timecode, p_current, b_found ); psz_result = (*index)->FindTimecode( i_user_timecode, p_current, b_found );
index++; ++index;
} }
if ( psz_result == NULL ) if ( psz_result == NULL )
...@@ -263,7 +263,7 @@ bool chapter_item_c::ParentOf( const chapter_item_c & item ) const ...@@ -263,7 +263,7 @@ bool chapter_item_c::ParentOf( const chapter_item_c & item ) const
{ {
if ( (*index)->ParentOf( item ) ) if ( (*index)->ParentOf( item ) )
return true; return true;
index++; ++index;
} }
return false; return false;
...@@ -276,7 +276,7 @@ bool chapter_item_c::Enter( bool b_do_subs ) ...@@ -276,7 +276,7 @@ bool chapter_item_c::Enter( bool b_do_subs )
while ( index != codecs.end() ) while ( index != codecs.end() )
{ {
f_result |= (*index)->Enter(); f_result |= (*index)->Enter();
index++; ++index;
} }
if ( b_do_subs ) if ( b_do_subs )
...@@ -286,7 +286,7 @@ bool chapter_item_c::Enter( bool b_do_subs ) ...@@ -286,7 +286,7 @@ bool chapter_item_c::Enter( bool b_do_subs )
while ( index_ != sub_chapters.end() ) while ( index_ != sub_chapters.end() )
{ {
f_result |= (*index_)->Enter( true ); f_result |= (*index_)->Enter( true );
index_++; ++index_;
} }
} }
return f_result; return f_result;
...@@ -300,7 +300,7 @@ bool chapter_item_c::Leave( bool b_do_subs ) ...@@ -300,7 +300,7 @@ bool chapter_item_c::Leave( bool b_do_subs )
while ( index != codecs.end() ) while ( index != codecs.end() )
{ {
f_result |= (*index)->Leave(); f_result |= (*index)->Leave();
index++; ++index;
} }
if ( b_do_subs ) if ( b_do_subs )
...@@ -310,7 +310,7 @@ bool chapter_item_c::Leave( bool b_do_subs ) ...@@ -310,7 +310,7 @@ bool chapter_item_c::Leave( bool b_do_subs )
while ( index_ != sub_chapters.end() ) while ( index_ != sub_chapters.end() )
{ {
f_result |= (*index_)->Leave( true ); f_result |= (*index_)->Leave( true );
index_++; ++index_;
} }
} }
b_is_leaving = false; b_is_leaving = false;
......
...@@ -707,7 +707,7 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this, ...@@ -707,7 +707,7 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
int boxline = 0; int boxline = 0;
for( QVector<checkBoxListItem*>::iterator it = modules.begin(); for( QVector<checkBoxListItem*>::iterator it = modules.begin();
it != modules.end(); it++ ) it != modules.end(); ++it )
{ {
layoutGroupBox->addWidget( (*it)->checkBox, boxline++, 0 ); layoutGroupBox->addWidget( (*it)->checkBox, boxline++, 0 );
} }
...@@ -731,7 +731,7 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this, ...@@ -731,7 +731,7 @@ ModuleListConfigControl::ModuleListConfigControl( vlc_object_t *_p_this,
ModuleListConfigControl::~ModuleListConfigControl() ModuleListConfigControl::~ModuleListConfigControl()
{ {
for( QVector<checkBoxListItem*>::iterator it = modules.begin(); for( QVector<checkBoxListItem*>::iterator it = modules.begin();
it != modules.end(); it++ ) it != modules.end(); ++it )
{ {
delete *it; delete *it;
} }
...@@ -811,7 +811,7 @@ QString ModuleListConfigControl::getValue() ...@@ -811,7 +811,7 @@ QString ModuleListConfigControl::getValue()
void ModuleListConfigControl::hide() void ModuleListConfigControl::hide()
{ {
for( QVector<checkBoxListItem*>::iterator it = modules.begin(); for( QVector<checkBoxListItem*>::iterator it = modules.begin();
it != modules.end(); it++ ) it != modules.end(); ++it )
{ {
(*it)->checkBox->hide(); (*it)->checkBox->hide();
} }
...@@ -821,7 +821,7 @@ void ModuleListConfigControl::hide() ...@@ -821,7 +821,7 @@ void ModuleListConfigControl::hide()
void ModuleListConfigControl::show() void ModuleListConfigControl::show()
{ {
for( QVector<checkBoxListItem*>::iterator it = modules.begin(); for( QVector<checkBoxListItem*>::iterator it = modules.begin();
it != modules.end(); it++ ) it != modules.end(); ++it )
{ {
(*it)->checkBox->show(); (*it)->checkBox->show();
} }
...@@ -835,7 +835,7 @@ void ModuleListConfigControl::onUpdate() ...@@ -835,7 +835,7 @@ void ModuleListConfigControl::onUpdate()
bool first = true; bool first = true;
for( QVector<checkBoxListItem*>::iterator it = modules.begin(); for( QVector<checkBoxListItem*>::iterator it = modules.begin();
it != modules.end(); it++ ) it != modules.end(); ++it )
{ {
if( (*it)->checkBox->isChecked() ) if( (*it)->checkBox->isChecked() )
{ {
......
...@@ -750,7 +750,7 @@ void SPrefsPanel::apply() ...@@ -750,7 +750,7 @@ void SPrefsPanel::apply()
{ {
/* Generic save for ever panel */ /* Generic save for ever panel */
QList<ConfigControl *>::Iterator i; QList<ConfigControl *>::Iterator i;
for( i = controls.begin() ; i != controls.end() ; i++ ) for( i = controls.begin() ; i != controls.end() ; ++i )
{ {
ConfigControl *c = qobject_cast<ConfigControl *>(*i); ConfigControl *c = qobject_cast<ConfigControl *>(*i);
c->doApply( p_intf ); c->doApply( p_intf );
...@@ -867,7 +867,7 @@ void SPrefsPanel::changeStyle( QString s_style ) ...@@ -867,7 +867,7 @@ void SPrefsPanel::changeStyle( QString s_style )
QWidgetList::iterator it = widgets.begin(); QWidgetList::iterator it = widgets.begin();
while( it != widgets.end() ) { while( it != widgets.end() ) {
(*it)->update(); (*it)->update();
it++; ++it;
}; };
} }
......
...@@ -886,7 +886,7 @@ void VLMWrapper::EditSchedule( const QString& name, const QString& input, ...@@ -886,7 +886,7 @@ void VLMWrapper::EditSchedule( const QString& name, const QString& input,
void VLMDialog::toggleVisible() void VLMDialog::toggleVisible()
{ {
QList<VLMAWidget *>::iterator it; QList<VLMAWidget *>::iterator it;
for( it = vlmItems.begin(); it != vlmItems.end(); it++ ) for( it = vlmItems.begin(); it != vlmItems.end(); ++it )
{ {
VLMAWidget *item = *it; VLMAWidget *item = *it;
delete item; delete item;
......
...@@ -212,7 +212,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent ) ...@@ -212,7 +212,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent )
{ {
// Flag to know if the current item must be selected // Flag to know if the current item must be selected
bool select = false; bool select = false;
for( it = m_rList.begin(); it != m_rList.end(); it++ ) for( it = m_rList.begin(); it != m_rList.end(); ++it )
{ {
bool nextSelect = select; bool nextSelect = select;
if( index == yPos || &*it == m_pLastSelected ) if( index == yPos || &*it == m_pLastSelected )
...@@ -236,7 +236,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent ) ...@@ -236,7 +236,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent )
else if( rEvent.getAsString().find( "mouse:left:down:ctrl" ) != else if( rEvent.getAsString().find( "mouse:left:down:ctrl" ) !=
string::npos ) string::npos )
{ {
for( it = m_rList.begin(); it != m_rList.end(); it++ ) for( it = m_rList.begin(); it != m_rList.end(); ++it )
{ {
if( index == yPos ) if( index == yPos )
{ {
...@@ -253,7 +253,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent ) ...@@ -253,7 +253,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent )
{ {
// Flag to know if the current item must be selected // Flag to know if the current item must be selected
bool select = false; bool select = false;
for( it = m_rList.begin(); it != m_rList.end(); it++ ) for( it = m_rList.begin(); it != m_rList.end(); ++it )
{ {
bool nextSelect = select; bool nextSelect = select;
if( index == yPos || &*it == m_pLastSelected ) if( index == yPos || &*it == m_pLastSelected )
...@@ -277,7 +277,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent ) ...@@ -277,7 +277,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent )
else if( rEvent.getAsString().find( "mouse:left:down" ) != else if( rEvent.getAsString().find( "mouse:left:down" ) !=
string::npos ) string::npos )
{ {
for( it = m_rList.begin(); it != m_rList.end(); it++ ) for( it = m_rList.begin(); it != m_rList.end(); ++it )
{ {
if( index == yPos ) if( index == yPos )
{ {
...@@ -295,7 +295,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent ) ...@@ -295,7 +295,7 @@ void CtrlList::handleEvent( EvtGeneric &rEvent )
else if( rEvent.getAsString().find( "mouse:left:dblclick" ) != else if( rEvent.getAsString().find( "mouse:left:dblclick" ) !=
string::npos ) string::npos )
{ {
for( it = m_rList.begin(); it != m_rList.end(); it++ ) for( it = m_rList.begin(); it != m_rList.end(); ++it )
{ {
if( index == yPos ) if( index == yPos )
{ {
...@@ -383,7 +383,7 @@ void CtrlList::autoScroll() ...@@ -383,7 +383,7 @@ void CtrlList::autoScroll()
// Find the current playing stream // Find the current playing stream
int playIndex = 0; int playIndex = 0;
VarList::ConstIterator it; VarList::ConstIterator it;
for( it = m_rList.begin(); it != m_rList.end(); it++ ) for( it = m_rList.begin(); it != m_rList.end(); ++it )
{ {
if( (*it).m_playing ) if( (*it).m_playing )
{ {
...@@ -446,7 +446,7 @@ void CtrlList::makeImage() ...@@ -446,7 +446,7 @@ void CtrlList::makeImage()
m_pImage->fillRect( 0, yPos, width, rectHeight, m_pImage->fillRect( 0, yPos, width, rectHeight,
m_selColor ); m_selColor );
} }
it++; ++it;
} }
} }
} }
...@@ -462,7 +462,7 @@ void CtrlList::makeImage() ...@@ -462,7 +462,7 @@ void CtrlList::makeImage()
{ {
uint32_t color = ( (*it).m_selected ? m_selColor : bgColor ); uint32_t color = ( (*it).m_selected ? m_selColor : bgColor );
m_pImage->fillRect( 0, yPos, width, rectHeight, color ); m_pImage->fillRect( 0, yPos, width, rectHeight, color );
it++; ++it;
} }
else else
{ {
...@@ -475,7 +475,7 @@ void CtrlList::makeImage() ...@@ -475,7 +475,7 @@ void CtrlList::makeImage()
// Draw the items // Draw the items
int yPos = 0; int yPos = 0;
for( it = m_rList[m_lastPos]; it != m_rList.end() && yPos < height; it++ ) for( it = m_rList[m_lastPos]; it != m_rList.end() && yPos < height; ++it )
{ {
UString *pStr = (UString*)(it->m_cString.get()); UString *pStr = (UString*)(it->m_cString.get());
uint32_t color = ( it->m_playing ? m_playColor : m_fgColor ); uint32_t color = ( it->m_playing ? m_playColor : m_fgColor );
......
...@@ -297,7 +297,7 @@ void Builder::addFont( const BuilderData::Font &rData ) ...@@ -297,7 +297,7 @@ void Builder::addFont( const BuilderData::Font &rData )
const string &sep = pOSFactory->getDirSeparator(); const string &sep = pOSFactory->getDirSeparator();
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 )
{ {
string path = (*it) + sep + "fonts" + sep + rData.m_fontFile; string path = (*it) + sep + "fonts" + sep + rData.m_fontFile;
pFont = new FT2Font( getIntf(), path, rData.m_size ); pFont = new FT2Font( getIntf(), path, rData.m_size );
...@@ -1152,7 +1152,7 @@ GenericFont *Builder::getFont( const string &fontId ) ...@@ -1152,7 +1152,7 @@ GenericFont *Builder::getFont( const string &fontId )
const string &sep = pOSFactory->getDirSeparator(); const string &sep = pOSFactory->getDirSeparator();
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 )
{ {
string path = (*it) + sep + "fonts" + sep + "FreeSans.ttf"; string path = (*it) + sep + "fonts" + sep + "FreeSans.ttf";
pFont = new FT2Font( getIntf(), path, 12 ); pFont = new FT2Font( getIntf(), path, 12 );
......
...@@ -92,7 +92,7 @@ void XMLParser::LoadCatalog() ...@@ -92,7 +92,7 @@ void XMLParser::LoadCatalog()
// Try to load the catalog first (needed at least on win32 where // Try to load the catalog first (needed at least on win32 where
// we don't have a default catalog) // we don't have a default catalog)
for( it = resPath.begin(); it != resPath.end(); it++ ) for( it = resPath.begin(); it != resPath.end(); ++it )
{ {
string catalog_path = (*it) + sep + "skin.catalog"; string catalog_path = (*it) + sep + "skin.catalog";
if( !stat( catalog_path.c_str(), &statBuf ) ) if( !stat( catalog_path.c_str(), &statBuf ) )
...@@ -108,7 +108,7 @@ void XMLParser::LoadCatalog() ...@@ -108,7 +108,7 @@ void XMLParser::LoadCatalog()
xml_CatalogLoad( m_pXML, 0 ); xml_CatalogLoad( m_pXML, 0 );
} }
for( it = resPath.begin(); it != resPath.end(); it++ ) for( it = resPath.begin(); it != resPath.end(); ++it )
{ {
string path = (*it) + sep + "skin.dtd"; string path = (*it) + sep + "skin.dtd";
if( !stat( path.c_str(), &statBuf ) ) if( !stat( path.c_str(), &statBuf ) )
...@@ -180,7 +180,7 @@ bool XMLParser::parse() ...@@ -180,7 +180,7 @@ bool XMLParser::parse()
{ {
free( (char *)it->first ); free( (char *)it->first );
free( (char *)it->second ); free( (char *)it->second );
it++; ++it;
} }
break; break;
} }
......
...@@ -58,13 +58,13 @@ GenericLayout::~GenericLayout() ...@@ -58,13 +58,13 @@ GenericLayout::~GenericLayout()
delete m_pImage; delete m_pImage;
list<Anchor*>::const_iterator it; list<Anchor*>::const_iterator it;
for( it = m_anchorList.begin(); it != m_anchorList.end(); it++ ) for( it = m_anchorList.begin(); it != m_anchorList.end(); ++it )
{ {
delete *it; delete *it;
} }
list<LayeredControl>::const_iterator iter; list<LayeredControl>::const_iterator iter;
for( iter = m_controlList.begin(); iter != m_controlList.end(); iter++ ) for( iter = m_controlList.begin(); iter != m_controlList.end(); ++iter )
{ {
CtrlGeneric *pCtrl = (*iter).m_pControl; CtrlGeneric *pCtrl = (*iter).m_pControl;
pCtrl->unsetLayout(); pCtrl->unsetLayout();
...@@ -112,7 +112,7 @@ void GenericLayout::addControl( CtrlGeneric *pControl, ...@@ -112,7 +112,7 @@ void GenericLayout::addControl( CtrlGeneric *pControl,
// Add the control in the list. // Add the control in the list.
// This list must remain sorted by layer order // This list must remain sorted by layer order
list<LayeredControl>::iterator it; list<LayeredControl>::iterator it;
for( it = m_controlList.begin(); it != m_controlList.end(); it++ ) for( it = m_controlList.begin(); it != m_controlList.end(); ++it )
{ {
if( layer < (*it).m_layer ) if( layer < (*it).m_layer )
{ {
...@@ -185,7 +185,7 @@ void GenericLayout::resize( int width, int height ) ...@@ -185,7 +185,7 @@ void GenericLayout::resize( int width, int height )
// Notify all the controls that the size has changed and redraw them // Notify all the controls that the size has changed and redraw them
list<LayeredControl>::const_iterator iter; list<LayeredControl>::const_iterator iter;
for( iter = m_controlList.begin(); iter != m_controlList.end(); iter++ ) for( iter = m_controlList.begin(); iter != m_controlList.end(); ++iter )
{ {
iter->m_pControl->onResize(); iter->m_pControl->onResize();
} }
...@@ -220,7 +220,7 @@ void GenericLayout::refreshRect( int x, int y, int width, int height ) ...@@ -220,7 +220,7 @@ void GenericLayout::refreshRect( int x, int y, int width, int height )
// Draw all the controls of the layout // Draw all the controls of the layout
list<LayeredControl>::const_iterator iter; list<LayeredControl>::const_iterator iter;
list<LayeredControl>::const_iterator iterVideo = m_controlList.end(); list<LayeredControl>::const_iterator iterVideo = m_controlList.end();
for( iter = m_controlList.begin(); iter != m_controlList.end(); iter++ ) for( iter = m_controlList.begin(); iter != m_controlList.end(); ++iter )
{ {
CtrlGeneric *pCtrl = (*iter).m_pControl; CtrlGeneric *pCtrl = (*iter).m_pControl;
if( pCtrl->isVisible() ) if( pCtrl->isVisible() )
......
...@@ -180,14 +180,14 @@ void Theme::saveConfig() ...@@ -180,14 +180,14 @@ void Theme::saveConfig()
map<string, TopWindowPtr>::const_iterator itWin; map<string, TopWindowPtr>::const_iterator itWin;
map<string, GenericLayoutPtr>::const_iterator itLay; map<string, GenericLayoutPtr>::const_iterator itLay;
ostringstream outStream; ostringstream outStream;
for( itWin = m_windows.begin(); itWin != m_windows.end(); itWin++ ) for( itWin = m_windows.begin(); itWin != m_windows.end(); ++itWin )
{ {
TopWindow *pWin = itWin->second.get(); TopWindow *pWin = itWin->second.get();
// Find the layout id for this window // Find the layout id for this window
string layoutId; string layoutId;
const GenericLayout *pLayout = &pWin->getActiveLayout(); const GenericLayout *pLayout = &pWin->getActiveLayout();
for( itLay = m_layouts.begin(); itLay != m_layouts.end(); itLay++ ) for( itLay = m_layouts.begin(); itLay != m_layouts.end(); ++itLay )
{ {
if( itLay->second.get() == pLayout ) if( itLay->second.get() == pLayout )
{ {
......
...@@ -66,14 +66,14 @@ ThemeRepository::ThemeRepository( intf_thread_t *pIntf ): SkinObject( pIntf ) ...@@ -66,14 +66,14 @@ ThemeRepository::ThemeRepository( intf_thread_t *pIntf ): SkinObject( pIntf )
OSFactory *pOsFactory = OSFactory::instance( pIntf ); OSFactory *pOsFactory = OSFactory::instance( pIntf );
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 )
{ {
parseDirectory( *it ); parseDirectory( *it );
} }
// retrieve skins from skins directories and locate default skins // retrieve skins from skins directories and locate default skins
map<string,string>::const_iterator itmap, itdefault; map<string,string>::const_iterator itmap, itdefault;
for( itmap = m_skinsMap.begin(); itmap != m_skinsMap.end(); itmap++ ) for( itmap = m_skinsMap.begin(); itmap != m_skinsMap.end(); ++itmap )
{ {
string name = itmap->first; string name = itmap->first;
string path = itmap->second; string path = itmap->second;
...@@ -223,7 +223,7 @@ void ThemeRepository::updateRepository() ...@@ -223,7 +223,7 @@ void ThemeRepository::updateRepository()
// add this new skins if not yet present in repository // add this new skins if not yet present in repository
string current( psz_current ); string current( psz_current );
map<string,string>::const_iterator it; map<string,string>::const_iterator it;
for( it = m_skinsMap.begin(); it != m_skinsMap.end(); it++ ) for( it = m_skinsMap.begin(); it != m_skinsMap.end(); ++it )
{ {
if( it->second == current ) if( it->second == current )
break; break;
......
...@@ -432,7 +432,7 @@ CtrlGeneric *TopWindow::findHitControl( int xPos, int yPos ) ...@@ -432,7 +432,7 @@ CtrlGeneric *TopWindow::findHitControl( int xPos, int yPos )
CtrlGeneric *pNewHitControl = NULL; CtrlGeneric *pNewHitControl = NULL;
// Loop on the control list to find the uppest hit control // Loop on the control list to find the uppest hit control
for( iter = ctrlList.rbegin(); iter != ctrlList.rend(); iter++ ) for( iter = ctrlList.rbegin(); iter != ctrlList.rend(); ++iter )
{ {
// Get the position of the control in the layout // Get the position of the control in the layout
const Position *pos = (*iter).m_pControl->getPosition(); const Position *pos = (*iter).m_pControl->getPosition();
......
...@@ -37,7 +37,7 @@ VarManager::~VarManager() ...@@ -37,7 +37,7 @@ VarManager::~VarManager()
{ {
// Delete the variables in the reverse order they were added // Delete the variables in the reverse order they were added
list<string>::const_iterator it1; list<string>::const_iterator it1;
for( it1 = m_varList.begin(); it1 != m_varList.end(); it1++ ) for( it1 = m_varList.begin(); it1 != m_varList.end(); ++it1 )
{ {
m_varMap.erase(*it1); m_varMap.erase(*it1);
} }
......
...@@ -105,7 +105,7 @@ void VoutManager::saveVoutConfig( ) ...@@ -105,7 +105,7 @@ void VoutManager::saveVoutConfig( )
// Save width/height to be consistent across themes // Save width/height to be consistent across themes
// and detach Video Controls // and detach Video Controls
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); it++ ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pCtrlVideo ) if( (*it).pCtrlVideo )
{ {
...@@ -135,7 +135,7 @@ void VoutManager::restoreVoutConfig( bool b_success ) ...@@ -135,7 +135,7 @@ void VoutManager::restoreVoutConfig( bool b_success )
// reattach vout(s) to Video Controls // reattach vout(s) to Video Controls
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); it++ ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
CtrlVideo* pCtrlVideo = getBestCtrlVideo(); CtrlVideo* pCtrlVideo = getBestCtrlVideo();
if( pCtrlVideo ) if( pCtrlVideo )
...@@ -150,7 +150,7 @@ void VoutManager::restoreVoutConfig( bool b_success ) ...@@ -150,7 +150,7 @@ void VoutManager::restoreVoutConfig( bool b_success )
void VoutManager::discardVout( CtrlVideo* pCtrlVideo ) void VoutManager::discardVout( CtrlVideo* pCtrlVideo )
{ {
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); it++ ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pCtrlVideo == pCtrlVideo ) if( (*it).pCtrlVideo == pCtrlVideo )
{ {
...@@ -168,7 +168,7 @@ void VoutManager::discardVout( CtrlVideo* pCtrlVideo ) ...@@ -168,7 +168,7 @@ void VoutManager::discardVout( CtrlVideo* pCtrlVideo )
void VoutManager::requestVout( CtrlVideo* pCtrlVideo ) void VoutManager::requestVout( CtrlVideo* pCtrlVideo )
{ {
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); it++ ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pCtrlVideo == NULL ) if( (*it).pCtrlVideo == NULL )
{ {
...@@ -186,7 +186,7 @@ CtrlVideo* VoutManager::getBestCtrlVideo( ) ...@@ -186,7 +186,7 @@ CtrlVideo* VoutManager::getBestCtrlVideo( )
// try to find an unused useable VideoControl // try to find an unused useable VideoControl
vector<CtrlVideo*>::const_iterator it; vector<CtrlVideo*>::const_iterator it;
for( it = m_pCtrlVideoVec.begin(); it != m_pCtrlVideoVec.end(); it++ ) for( it = m_pCtrlVideoVec.begin(); it != m_pCtrlVideoVec.end(); ++it )
{ {
if( (*it)->isUseable() && !(*it)->isUsed() ) if( (*it)->isUseable() && !(*it)->isUsed() )
{ {
...@@ -236,7 +236,7 @@ void VoutManager::releaseWnd( vout_window_t *pWnd ) ...@@ -236,7 +236,7 @@ void VoutManager::releaseWnd( vout_window_t *pWnd )
{ {
// remove vout thread from savedVec // remove vout thread from savedVec
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); it++ ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pWnd == pWnd ) if( (*it).pWnd == pWnd )
{ {
...@@ -267,7 +267,7 @@ void VoutManager::setSizeWnd( vout_window_t *pWnd, int width, int height ) ...@@ -267,7 +267,7 @@ void VoutManager::setSizeWnd( vout_window_t *pWnd, int width, int height )
width, height ); width, height );
vector<SavedWnd>::iterator it; vector<SavedWnd>::iterator it;
for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); it++ ) for( it = m_SavedWndVec.begin(); it != m_SavedWndVec.end(); ++it )
{ {
if( (*it).pWnd == pWnd ) if( (*it).pWnd == pWnd )
{ {
......
...@@ -75,7 +75,7 @@ void WindowManager::startMove( TopWindow &rWindow ) ...@@ -75,7 +75,7 @@ void WindowManager::startMove( TopWindow &rWindow )
{ {
// Change the opacity of the moving windows // Change the opacity of the moving windows
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_movingWindows.begin(); it != m_movingWindows.end(); it++ ) for( it = m_movingWindows.begin(); it != m_movingWindows.end(); ++it )
{ {
(*it)->setOpacity( m_moveAlpha ); (*it)->setOpacity( m_moveAlpha );
} }
...@@ -83,7 +83,7 @@ void WindowManager::startMove( TopWindow &rWindow ) ...@@ -83,7 +83,7 @@ void WindowManager::startMove( TopWindow &rWindow )
// FIXME: We need to refresh the windows, because if 2 windows overlap // FIXME: We need to refresh the windows, because if 2 windows overlap
// and one of them becomes transparent, the other one is not refreshed // and one of them becomes transparent, the other one is not refreshed
// automatically. I don't know why... -- Ipkiss // automatically. I don't know why... -- Ipkiss
for( it = m_allWindows.begin(); it != m_allWindows.end(); it++ ) for( it = m_allWindows.begin(); it != m_allWindows.end(); ++it )
{ {
(*it)->refresh( 0, 0, (*it)->getWidth(), (*it)->getHeight() ); (*it)->refresh( 0, 0, (*it)->getWidth(), (*it)->getHeight() );
} }
...@@ -100,7 +100,7 @@ void WindowManager::stopMove() ...@@ -100,7 +100,7 @@ void WindowManager::stopMove()
{ {
// Restore the opacity of the moving windows // Restore the opacity of the moving windows
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_movingWindows.begin(); it != m_movingWindows.end(); it++ ) for( it = m_movingWindows.begin(); it != m_movingWindows.end(); ++it )
{ {
(*it)->setOpacity( m_alpha ); (*it)->setOpacity( m_alpha );
} }
...@@ -111,14 +111,14 @@ void WindowManager::stopMove() ...@@ -111,14 +111,14 @@ void WindowManager::stopMove()
// Now we rebuild the dependencies. // Now we rebuild the dependencies.
// Iterate through all the windows // Iterate through all the windows
for( itWin1 = m_allWindows.begin(); itWin1 != m_allWindows.end(); itWin1++ ) for( itWin1 = m_allWindows.begin(); itWin1 != m_allWindows.end(); ++itWin1 )
{ {
// Get the anchors of the layout associated to the window // Get the anchors of the layout associated to the window
const AncList_t &ancList1 = const AncList_t &ancList1 =
(*itWin1)->getActiveLayout().getAnchorList(); (*itWin1)->getActiveLayout().getAnchorList();
// Iterate through all the windows, starting with (*itWin1) // Iterate through all the windows, starting with (*itWin1)
for( itWin2 = itWin1; itWin2 != m_allWindows.end(); itWin2++ ) for( itWin2 = itWin1; itWin2 != m_allWindows.end(); ++itWin2 )
{ {
// A window can't anchor itself... // A window can't anchor itself...
if( (*itWin2) == (*itWin1) ) if( (*itWin2) == (*itWin1) )
...@@ -127,10 +127,10 @@ void WindowManager::stopMove() ...@@ -127,10 +127,10 @@ void WindowManager::stopMove()
// Now, check for anchoring between the 2 windows // Now, check for anchoring between the 2 windows
const AncList_t &ancList2 = const AncList_t &ancList2 =
(*itWin2)->getActiveLayout().getAnchorList(); (*itWin2)->getActiveLayout().getAnchorList();
for( itAnc1 = ancList1.begin(); itAnc1 != ancList1.end(); itAnc1++ ) for( itAnc1 = ancList1.begin(); itAnc1 != ancList1.end(); ++itAnc1 )
{ {
for( itAnc2 = ancList2.begin(); for( itAnc2 = ancList2.begin();
itAnc2 != ancList2.end(); itAnc2++ ) itAnc2 != ancList2.end(); ++itAnc2 )
{ {
if( (*itAnc1)->isHanging( **itAnc2 ) ) if( (*itAnc1)->isHanging( **itAnc2 ) )
{ {
...@@ -160,7 +160,7 @@ void WindowManager::move( TopWindow &rWindow, int left, int top ) const ...@@ -160,7 +160,7 @@ void WindowManager::move( TopWindow &rWindow, int left, int top ) const
// Move all the windows // Move all the windows
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_movingWindows.begin(); it != m_movingWindows.end(); it++ ) for( it = m_movingWindows.begin(); it != m_movingWindows.end(); ++it )
{ {
(*it)->move( (*it)->getLeft() + xOffset, (*it)->getTop() + yOffset ); (*it)->move( (*it)->getLeft() + xOffset, (*it)->getTop() + yOffset );
} }
...@@ -187,15 +187,15 @@ void WindowManager::startResize( GenericLayout &rLayout, Direction_t direction ) ...@@ -187,15 +187,15 @@ void WindowManager::startResize( GenericLayout &rLayout, Direction_t direction )
// Iterate through all the hanged windows // Iterate through all the hanged windows
for( itWin = m_dependencies[rLayout.getWindow()].begin(); for( itWin = m_dependencies[rLayout.getWindow()].begin();
itWin != m_dependencies[rLayout.getWindow()].end(); itWin++ ) itWin != m_dependencies[rLayout.getWindow()].end(); ++itWin )
{ {
// Now, check for anchoring between the 2 windows // Now, check for anchoring between the 2 windows
const AncList_t &ancList2 = const AncList_t &ancList2 =
(*itWin)->getActiveLayout().getAnchorList(); (*itWin)->getActiveLayout().getAnchorList();
for( itAnc1 = ancList1.begin(); itAnc1 != ancList1.end(); itAnc1++ ) for( itAnc1 = ancList1.begin(); itAnc1 != ancList1.end(); ++itAnc1 )
{ {
for( itAnc2 = ancList2.begin(); for( itAnc2 = ancList2.begin();
itAnc2 != ancList2.end(); itAnc2++ ) itAnc2 != ancList2.end(); ++itAnc2 )
{ {
if( (*itAnc1)->isHanging( **itAnc2 ) ) if( (*itAnc1)->isHanging( **itAnc2 ) )
{ {
...@@ -285,7 +285,7 @@ void WindowManager::resize( GenericLayout &rLayout, ...@@ -285,7 +285,7 @@ void WindowManager::resize( GenericLayout &rLayout,
if( m_direction == kResizeE || if( m_direction == kResizeE ||
m_direction == kResizeSE ) m_direction == kResizeSE )
{ {
for( it = m_resizeMovingE.begin(); it != m_resizeMovingE.end(); it++ ) for( it = m_resizeMovingE.begin(); it != m_resizeMovingE.end(); ++it )
{ {
(*it)->move( (*it)->getLeft() + xNewOffset, (*it)->move( (*it)->getLeft() + xNewOffset,
(*it)->getTop() ); (*it)->getTop() );
...@@ -294,7 +294,7 @@ void WindowManager::resize( GenericLayout &rLayout, ...@@ -294,7 +294,7 @@ void WindowManager::resize( GenericLayout &rLayout,
if( m_direction == kResizeE || if( m_direction == kResizeE ||
m_direction == kResizeSE ) m_direction == kResizeSE )
{ {
for( it = m_resizeMovingS.begin(); it != m_resizeMovingS.end(); it++ ) for( it = m_resizeMovingS.begin(); it != m_resizeMovingS.end(); ++it )
{ {
(*it)->move( (*it)->getLeft(), (*it)->move( (*it)->getLeft(),
(*it)->getTop( )+ yNewOffset ); (*it)->getTop( )+ yNewOffset );
...@@ -304,7 +304,7 @@ void WindowManager::resize( GenericLayout &rLayout, ...@@ -304,7 +304,7 @@ void WindowManager::resize( GenericLayout &rLayout,
m_direction == kResizeS || m_direction == kResizeS ||
m_direction == kResizeSE ) m_direction == kResizeSE )
{ {
for( it = m_resizeMovingSE.begin(); it != m_resizeMovingSE.end(); it++ ) for( it = m_resizeMovingSE.begin(); it != m_resizeMovingSE.end(); ++it )
{ {
(*it)->move( (*it)->getLeft() + xNewOffset, (*it)->move( (*it)->getLeft() + xNewOffset,
(*it)->getTop() + yNewOffset ); (*it)->getTop() + yNewOffset );
...@@ -360,7 +360,7 @@ void WindowManager::unmaximize( TopWindow &rWindow ) ...@@ -360,7 +360,7 @@ void WindowManager::unmaximize( TopWindow &rWindow )
void WindowManager::synchVisibility() const void WindowManager::synchVisibility() const
{ {
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_allWindows.begin(); it != m_allWindows.end(); it++ ) for( it = m_allWindows.begin(); it != m_allWindows.end(); ++it )
{ {
// Show the window if it has to be visible // Show the window if it has to be visible
if( (*it)->getVisibleVar().get() ) if( (*it)->getVisibleVar().get() )
...@@ -375,7 +375,7 @@ void WindowManager::saveVisibility() ...@@ -375,7 +375,7 @@ void WindowManager::saveVisibility()
{ {
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
m_savedWindows.clear(); m_savedWindows.clear();
for( it = m_allWindows.begin(); it != m_allWindows.end(); it++ ) for( it = m_allWindows.begin(); it != m_allWindows.end(); ++it )
{ {
// Remember the window if it is visible // Remember the window if it is visible
if( (*it)->getVisibleVar().get() ) if( (*it)->getVisibleVar().get() )
...@@ -395,7 +395,7 @@ void WindowManager::restoreVisibility() const ...@@ -395,7 +395,7 @@ void WindowManager::restoreVisibility() const
} }
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_savedWindows.begin(); it != m_savedWindows.end(); it++) for( it = m_savedWindows.begin(); it != m_savedWindows.end(); ++it )
{ {
(*it)->show(); (*it)->show();
} }
...@@ -406,7 +406,7 @@ void WindowManager::raiseAll() const ...@@ -406,7 +406,7 @@ void WindowManager::raiseAll() const
{ {
// Raise all the windows // Raise all the windows
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_allWindows.begin(); it != m_allWindows.end(); it++ ) for( it = m_allWindows.begin(); it != m_allWindows.end(); ++it )
{ {
(*it)->raise(); (*it)->raise();
} }
...@@ -417,7 +417,7 @@ void WindowManager::showAll( bool firstTime ) const ...@@ -417,7 +417,7 @@ void WindowManager::showAll( bool firstTime ) const
{ {
// Show all the windows // Show all the windows
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_allWindows.begin(); it != m_allWindows.end(); it++ ) for( it = m_allWindows.begin(); it != m_allWindows.end(); ++it )
{ {
// When the theme is opened for the first time, // When the theme is opened for the first time,
// only show the window if set as visible in the XML // only show the window if set as visible in the XML
...@@ -432,7 +432,7 @@ void WindowManager::showAll( bool firstTime ) const ...@@ -432,7 +432,7 @@ void WindowManager::showAll( bool firstTime ) const
void WindowManager::hideAll() const void WindowManager::hideAll() const
{ {
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_allWindows.begin(); it != m_allWindows.end(); it++ ) for( it = m_allWindows.begin(); it != m_allWindows.end(); ++it )
{ {
(*it)->hide(); (*it)->hide();
} }
...@@ -447,7 +447,7 @@ void WindowManager::setOnTop( bool b_ontop ) ...@@ -447,7 +447,7 @@ void WindowManager::setOnTop( bool b_ontop )
// set/unset the "on top" status // set/unset the "on top" status
WinSet_t::const_iterator it; WinSet_t::const_iterator it;
for( it = m_allWindows.begin(); it != m_allWindows.end(); it++ ) for( it = m_allWindows.begin(); it != m_allWindows.end(); ++it )
{ {
(*it)->toggleOnTop( b_ontop ); (*it)->toggleOnTop( b_ontop );
} }
...@@ -471,7 +471,7 @@ void WindowManager::buildDependSet( WinSet_t &rWinSet, ...@@ -471,7 +471,7 @@ void WindowManager::buildDependSet( WinSet_t &rWinSet,
// Iterate through the anchored windows // Iterate through the anchored windows
const WinSet_t &anchored = m_dependencies[pWindow]; const WinSet_t &anchored = m_dependencies[pWindow];
WinSet_t::const_iterator iter; WinSet_t::const_iterator iter;
for( iter = anchored.begin(); iter != anchored.end(); iter++ ) for( iter = anchored.begin(); iter != anchored.end(); ++iter )
{ {
// Check that the window isn't already in the set before adding it // Check that the window isn't already in the set before adding it
if( rWinSet.find( *iter ) == rWinSet.end() ) if( rWinSet.find( *iter ) == rWinSet.end() )
...@@ -492,7 +492,7 @@ void WindowManager::checkAnchors( TopWindow *pWindow, ...@@ -492,7 +492,7 @@ void WindowManager::checkAnchors( TopWindow *pWindow,
SkinsRect workArea = OSFactory::instance( getIntf() )->getWorkArea(); SkinsRect workArea = OSFactory::instance( getIntf() )->getWorkArea();
// Iterate through the moving windows // Iterate through the moving windows
for( itMov = m_movingWindows.begin(); for( itMov = m_movingWindows.begin();
itMov != m_movingWindows.end(); itMov++ ) itMov != m_movingWindows.end(); ++itMov )
{ {
// Skip the invisible windows // Skip the invisible windows
if( ! (*itMov)->getVisibleVar().get() ) if( ! (*itMov)->getVisibleVar().get() )
...@@ -528,7 +528,7 @@ void WindowManager::checkAnchors( TopWindow *pWindow, ...@@ -528,7 +528,7 @@ void WindowManager::checkAnchors( TopWindow *pWindow,
// Iterate through the moving windows // Iterate through the moving windows
for( itMov = m_movingWindows.begin(); for( itMov = m_movingWindows.begin();
itMov != m_movingWindows.end(); itMov++ ) itMov != m_movingWindows.end(); ++itMov )
{ {
// Skip the invisible windows // Skip the invisible windows
if( ! (*itMov)->getVisibleVar().get() ) if( ! (*itMov)->getVisibleVar().get() )
...@@ -542,7 +542,7 @@ void WindowManager::checkAnchors( TopWindow *pWindow, ...@@ -542,7 +542,7 @@ void WindowManager::checkAnchors( TopWindow *pWindow,
// Iterate through the static windows // Iterate through the static windows
for( itSta = m_allWindows.begin(); for( itSta = m_allWindows.begin();
itSta != m_allWindows.end(); itSta++ ) itSta != m_allWindows.end(); ++itSta )
{ {
// Skip the moving windows and the invisible ones // Skip the moving windows and the invisible ones
if( m_movingWindows.find( (*itSta) ) != m_movingWindows.end() || if( m_movingWindows.find( (*itSta) ) != m_movingWindows.end() ||
...@@ -558,10 +558,10 @@ void WindowManager::checkAnchors( TopWindow *pWindow, ...@@ -558,10 +558,10 @@ void WindowManager::checkAnchors( TopWindow *pWindow,
// Check if there is an anchoring between one of the movAnchors // Check if there is an anchoring between one of the movAnchors
// and one of the staAnchors // and one of the staAnchors
for( itAncMov = movAnchors.begin(); for( itAncMov = movAnchors.begin();
itAncMov != movAnchors.end(); itAncMov++ ) itAncMov != movAnchors.end(); ++itAncMov )
{ {
for( itAncSta = staAnchors.begin(); for( itAncSta = staAnchors.begin();
itAncSta != staAnchors.end(); itAncSta++ ) itAncSta != staAnchors.end(); ++itAncSta )
{ {
if( (*itAncSta)->canHang( **itAncMov, xOffset, yOffset ) ) if( (*itAncSta)->canHang( **itAncMov, xOffset, yOffset ) )
{ {
......
...@@ -82,7 +82,7 @@ void X11DragDrop::dndEnter( ldata_t data ) ...@@ -82,7 +82,7 @@ void X11DragDrop::dndEnter( ldata_t data )
// Find the right target // Find the right target
m_target = None; m_target = None;
list<string>::iterator it; list<string>::iterator it;
for( it = dataTypes.begin(); it != dataTypes.end(); it++ ) for( it = dataTypes.begin(); it != dataTypes.end(); ++it )
{ {
if( *it == "text/plain" || *it == "STRING" ) if( *it == "text/plain" || *it == "STRING" )
{ {
......
...@@ -110,7 +110,7 @@ void X11TimerLoop::waitNextTimer() ...@@ -110,7 +110,7 @@ void X11TimerLoop::waitNextTimer()
// Find the next timer to execute // Find the next timer to execute
list<X11Timer*>::const_iterator timer; list<X11Timer*>::const_iterator timer;
for( timer = m_timers.begin(); timer != m_timers.end(); timer++ ) for( timer = m_timers.begin(); timer != m_timers.end(); ++timer )
{ {
mtime_t timerDate = (*timer)->getNextDate(); mtime_t timerDate = (*timer)->getNextDate();
if( timerDate < nextDate ) if( timerDate < nextDate )
......
...@@ -916,7 +916,7 @@ void MediaServerList::removeServer( const char* psz_udn ) ...@@ -916,7 +916,7 @@ void MediaServerList::removeServer( const char* psz_udn )
"Removing server '%s'", p_server->getFriendlyName() ); "Removing server '%s'", p_server->getFriendlyName() );
std::vector<MediaServer*>::iterator it; std::vector<MediaServer*>::iterator it;
for ( it = _list.begin(); it != _list.end(); it++ ) for ( it = _list.begin(); it != _list.end(); ++it )
{ {
if ( *it == p_server ) if ( *it == p_server )
{ {
......
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