Skip to content

Commit

Permalink
Pass small object by value
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 20, 2018
1 parent 26e4ea7 commit 167e23e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/analysis/vector/geometry_checker/qgsfeaturepool.cpp
Expand Up @@ -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 ) )
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/vector/geometry_checker/qgsfeaturepool.h
Expand Up @@ -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; }
Expand Down

0 comments on commit 167e23e

Please sign in to comment.