@@ -77,7 +77,7 @@ static bool sanitizeDifferenceResult( QgsGeometry &geom )
77
77
void QgsOverlayUtils::difference ( const QgsFeatureSource &sourceA, const QgsFeatureSource &sourceB, QgsFeatureSink &sink, QgsProcessingContext &context, QgsProcessingFeedback *feedback, int &count, int totalCount, QgsOverlayUtils::DifferenceOutput outputAttrs )
78
78
{
79
79
QgsFeatureRequest requestB;
80
- requestB.setSubsetOfAttributes ( QgsAttributeList () );
80
+ requestB.setNoAttributes ( );
81
81
if ( outputAttrs != OutputBA )
82
82
requestB.setDestinationCrs ( sourceA.sourceCrs (), context.transformContext () );
83
83
QgsSpatialIndex indexB ( sourceB.getFeatures ( requestB ), feedback );
@@ -108,7 +108,7 @@ void QgsOverlayUtils::difference( const QgsFeatureSource &sourceA, const QgsFeat
108
108
109
109
QgsFeatureRequest request;
110
110
request.setFilterFids ( intersects );
111
- request.setSubsetOfAttributes ( QgsAttributeList () );
111
+ request.setNoAttributes ( );
112
112
if ( outputAttrs != OutputBA )
113
113
request.setDestinationCrs ( sourceA.sourceCrs (), context.transformContext () );
114
114
@@ -180,7 +180,7 @@ void QgsOverlayUtils::intersection( const QgsFeatureSource &sourceA, const QgsFe
180
180
int attrCount = fieldIndicesA.count () + fieldIndicesB.count ();
181
181
182
182
QgsFeatureRequest request;
183
- request.setSubsetOfAttributes ( QgsAttributeList () );
183
+ request.setNoAttributes ( );
184
184
request.setDestinationCrs ( sourceA.sourceCrs (), context.transformContext () );
185
185
186
186
QgsFeature outFeat;
@@ -261,14 +261,14 @@ void QgsOverlayUtils::resolveOverlaps( const QgsFeatureSource &source, QgsFeatur
261
261
QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::geometryType ( QgsWkbTypes::multiType ( source.wkbType () ) );
262
262
263
263
QgsFeatureRequest requestOnlyGeoms;
264
- requestOnlyGeoms.setSubsetOfAttributes ( QgsAttributeList () );
264
+ requestOnlyGeoms.setNoAttributes ( );
265
265
266
266
QgsFeatureRequest requestOnlyAttrs;
267
267
requestOnlyAttrs.setFlags ( QgsFeatureRequest::NoGeometry );
268
268
269
269
QgsFeatureRequest requestOnlyIds;
270
270
requestOnlyIds.setFlags ( QgsFeatureRequest::NoGeometry );
271
- requestOnlyIds.setSubsetOfAttributes ( QgsAttributeList () );
271
+ requestOnlyIds.setNoAttributes ( );
272
272
273
273
// make a set of used feature IDs so that we do not try to reuse them for newly added features
274
274
QgsFeature f;
0 commit comments