Skip to content

Commit

Permalink
Cleaner loop
Browse files Browse the repository at this point in the history
(cherry picked from commit 6527d59)
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Jul 23, 2021
1 parent c9715e5 commit dfd92cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayerfeatureiterator.cpp
Expand Up @@ -530,9 +530,9 @@ bool QgsVectorLayerFeatureIterator::isValid() const

bool QgsVectorLayerFeatureIterator::fetchNextAddedFeature( QgsFeature &f )
{
while ( mFetchAddedFeaturesIt != mSource->mAddedFeatures.constBegin() &&
mFetchAddedFeaturesIt-- != mSource->mAddedFeatures.constBegin() )
while ( mFetchAddedFeaturesIt != mSource->mAddedFeatures.constBegin() )
{
--mFetchAddedFeaturesIt;
QgsFeatureId fid = mFetchAddedFeaturesIt->id();

if ( mFetchConsidered.contains( fid ) )
Expand Down

0 comments on commit dfd92cd

Please sign in to comment.