OTHER: use ++iter instead of iter++
This commit is contained in:
parent
6d271f221c
commit
6d7cf47b8f
3 changed files with 4 additions and 4 deletions
|
@ -251,7 +251,7 @@ PlaylistModel::handle_list (const Xmms::List< unsigned int > &list)
|
|||
int i = 0;
|
||||
#if HAVE_XMMSV
|
||||
for (Xmms::List< int >::const_iterator iter = list.begin();
|
||||
iter != list.end(); iter ++) {
|
||||
iter != list.end(); ++iter) {
|
||||
i++;
|
||||
}
|
||||
#else
|
||||
|
@ -262,7 +262,7 @@ PlaylistModel::handle_list (const Xmms::List< unsigned int > &list)
|
|||
beginInsertRows (QModelIndex (), 0, i);
|
||||
#if HAVE_XMMSV
|
||||
for (Xmms::List< int >::const_iterator iter = list.begin();
|
||||
iter != list.end(); iter ++) {
|
||||
iter != list.end(); ++iter) {
|
||||
m_plist.append (*iter);
|
||||
}
|
||||
#else
|
||||
|
|
|
@ -166,7 +166,7 @@ XCollection::Private::handle_playlists_list (const Xmms::List< std::string > &li
|
|||
|
||||
#if HAVE_XMMSV
|
||||
for (Xmms::List< std::string >::const_iterator iter = list.begin();
|
||||
iter != list.end(); iter ++) {
|
||||
iter != list.end(); ++iter) {
|
||||
m_playlists.append (XClient::stdToQ(*iter));
|
||||
}
|
||||
#else
|
||||
|
|
|
@ -103,7 +103,7 @@ BrowseModel::list_cb (const Xmms::List< Xmms::Dict > &res)
|
|||
|
||||
#if HAVE_XMMSV
|
||||
for (Xmms::List< Xmms::Dict >::const_iterator iter = res.begin();
|
||||
iter != res.end(); iter++) {
|
||||
iter != res.end(); ++iter) {
|
||||
Xmms::Dict d = *iter;
|
||||
#else
|
||||
for (res.first (); res.isValid (); ++res) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue