From kde-commits Thu Feb 24 18:30:59 2011 From: Alexey Khudyakov Date: Thu, 24 Feb 2011 18:30:59 +0000 To: kde-commits Subject: KDE/kdeedu/kstars/kstars/skycomponents Message-Id: <20110224183059.DA74DAC8C5 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129857230124359 SVN commit 1222535 by khudyakov: Use prefix ++ for iterators M +2 -2 deepskycomponent.cpp M +1 -1 starcomponent.cpp --- trunk/KDE/kdeedu/kstars/kstars/skycomponents/deepskycomponent.cpp #1222534:1222535 @@ -427,13 +427,13 @@ void DeepSkyComponent::objectsInArea( QList& list, const SkyRegion& region ) { - for( SkyRegion::const_iterator it = region.constBegin(); it != region.constEnd(); it++ ) + for( SkyRegion::const_iterator it = region.constBegin(); it != region.constEnd(); ++it ) { Trixel trixel = it.key(); if( m_DeepSkyIndex.contains( trixel ) ) { DeepSkyList* dsoList = m_DeepSkyIndex.value(trixel); - for( DeepSkyList::iterator dsit = dsoList->begin(); dsit != dsoList->end(); dsit++ ) + for( DeepSkyList::iterator dsit = dsoList->begin(); dsit != dsoList->end(); ++dsit ) list.append( *dsit ); } } --- trunk/KDE/kdeedu/kstars/kstars/skycomponents/starcomponent.cpp #1222534:1222535 @@ -507,7 +507,7 @@ void StarComponent::objectsInArea( QList& list, const SkyRegion& region ) { - for( SkyRegion::const_iterator it = region.constBegin(); it != region.constEnd(); it++ ) + for( SkyRegion::const_iterator it = region.constBegin(); it != region.constEnd(); ++it ) { Trixel trixel = it.key(); StarList* starlist = m_starIndex->at( trixel );