mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
reserve space in feature list for performance (#8322)
This commit is contained in:
parent
d1423decc8
commit
6a9cff3fd2
@ -3024,6 +3024,7 @@ const QgsFeatureIds &QgsVectorLayer::selectedFeatureIds() const
|
||||
QgsFeatureList QgsVectorLayer::selectedFeatures() const
|
||||
{
|
||||
QgsFeatureList features;
|
||||
features.reserve( mSelectedFeatureIds.count() );
|
||||
QgsFeature f;
|
||||
|
||||
if ( mSelectedFeatureIds.count() <= 8 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user