Skip to content
Permalink
Browse files

Pass small object by value

  • Loading branch information
nyalldawson committed Aug 19, 2018
1 parent 26e4ea7 commit 167e23e45e07068ec391f9d35c3e9851fa69658e
@@ -123,7 +123,7 @@ void QgsFeaturePool::updateFeature( QgsFeature &feature )
mIndexMutex.unlock();
}

void QgsFeaturePool::deleteFeature( const QgsFeatureId &fid )
void QgsFeaturePool::deleteFeature( QgsFeatureId fid )
{
QgsFeature origFeature;
if ( get( fid, origFeature ) )
@@ -38,7 +38,7 @@ class ANALYSIS_EXPORT QgsFeaturePool : public QObject
bool get( QgsFeatureId id, QgsFeature &feature );
void addFeature( QgsFeature &feature );
void updateFeature( QgsFeature &feature );
void deleteFeature( const QgsFeatureId &fid );
void deleteFeature( QgsFeatureId fid );
QgsFeatureIds getIntersects( const QgsRectangle &rect ) const;
QgsVectorLayer *getLayer() const { return mLayer; }
const QgsFeatureIds &getFeatureIds() const { return mFeatureIds; }

0 comments on commit 167e23e

Please sign in to comment.
You can’t perform that action at this time.