[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeedu/kstars/kstars/skycomponents
From: Alexey Khudyakov <alexey.skladnoy () gmail ! com>
Date: 2011-02-24 18:30:59
Message-ID: 20110224183059.DA74DAC8C5 () svn ! kde ! org
[Download RAW message or body]
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<SkyObject*>& 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<SkyObject*>& 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 );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic