Skip to content

Commit aa82247

Browse files
committedMay 7, 2020
Not using reference for QgsFeatureIds since the given value could maybe be changed on recursive delete.
Recursions are usualy not used with compositions, but to be save, this change has been made.
1 parent 73b1b2d commit aa82247

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎python/core/auto_generated/qgsvectorlayer.sip.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1971,7 +1971,7 @@ Deletes a feature from the layer (but does not commit it).
19711971
changes can be discarded by calling rollBack().
19721972
%End
19731973

1974-
bool deleteFeatures( const QgsFeatureIds &fids, DeleteContext *context = 0 );
1974+
bool deleteFeatures( const QgsFeatureIds fids, DeleteContext *context = 0 );
19751975
%Docstring
19761976
Deletes a set of features from the layer (but does not commit it)
19771977

‎src/core/qgsvectorlayer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3240,7 +3240,7 @@ bool QgsVectorLayer::deleteFeature( QgsFeatureId fid, QgsVectorLayer::DeleteCont
32403240
return res;
32413241
}
32423242

3243-
bool QgsVectorLayer::deleteFeatures( const QgsFeatureIds &fids, QgsVectorLayer::DeleteContext *context )
3243+
bool QgsVectorLayer::deleteFeatures( const QgsFeatureIds fids, QgsVectorLayer::DeleteContext *context )
32443244
{
32453245
bool res = true;
32463246
const auto constFids = fids;

‎src/core/qgsvectorlayer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1854,7 +1854,7 @@ class CORE_EXPORT QgsVectorLayer : public QgsMapLayer, public QgsExpressionConte
18541854
* to the underlying data provider until a commitChanges() call is made. Any uncommitted
18551855
* changes can be discarded by calling rollBack().
18561856
*/
1857-
bool deleteFeatures( const QgsFeatureIds &fids, DeleteContext *context = nullptr );
1857+
bool deleteFeatures( const QgsFeatureIds fids, DeleteContext *context = nullptr );
18581858

18591859
/**
18601860
* Attempts to commit to the underlying data provider any buffered changes made since the

0 commit comments

Comments
 (0)
Please sign in to comment.