Skip to content

Commit 167e23e

Browse files
committedAug 20, 2018
Pass small object by value
1 parent 26e4ea7 commit 167e23e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/analysis/vector/geometry_checker/qgsfeaturepool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ void QgsFeaturePool::updateFeature( QgsFeature &feature )
123123
mIndexMutex.unlock();
124124
}
125125

126-
void QgsFeaturePool::deleteFeature( const QgsFeatureId &fid )
126+
void QgsFeaturePool::deleteFeature( QgsFeatureId fid )
127127
{
128128
QgsFeature origFeature;
129129
if ( get( fid, origFeature ) )

‎src/analysis/vector/geometry_checker/qgsfeaturepool.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ANALYSIS_EXPORT QgsFeaturePool : public QObject
3838
bool get( QgsFeatureId id, QgsFeature &feature );
3939
void addFeature( QgsFeature &feature );
4040
void updateFeature( QgsFeature &feature );
41-
void deleteFeature( const QgsFeatureId &fid );
41+
void deleteFeature( QgsFeatureId fid );
4242
QgsFeatureIds getIntersects( const QgsRectangle &rect ) const;
4343
QgsVectorLayer *getLayer() const { return mLayer; }
4444
const QgsFeatureIds &getFeatureIds() const { return mFeatureIds; }

0 commit comments

Comments
 (0)
Please sign in to comment.