Skip to content
Permalink
Browse files
Revert "Fix build on old qt"
This reverts commit aae2ce1.
  • Loading branch information
3nids committed Jun 18, 2021
1 parent a038a79 commit 3b78ee6d95b59332db27c1bebcdbb38bc13897f9
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/core/qgscachedfeatureiterator.cpp
@@ -53,14 +53,7 @@ QgsCachedFeatureIterator::QgsCachedFeatureIterator( QgsVectorLayerCache *vlCache
break;

default:
#if QT_VERSION < QT_VERSION_CHECK(5, 15, 0)
mFeatureIds.clear();
mFeatureIds.reserve( static_cast< int >( mVectorLayerCache->mCacheOrderedKeys.size() ) );
for ( auto it = mVectorLayerCache->mCacheOrderedKeys.begin(); it != mVectorLayerCache->mCacheOrderedKeys.end(); ++it )
mFeatureIds << *it;
#else
mFeatureIds = QList( mVectorLayerCache->mCacheOrderedKeys.begin(), mVectorLayerCache->mCacheOrderedKeys.end() );
#endif
break;
}

0 comments on commit 3b78ee6

Please sign in to comment.