Skip to content

Commit

Permalink
Rename getFeatureIds() to allFeatureIds()
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 10, 2018
1 parent e0926e4 commit 1b4e007
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/analysis/vector/geometry_checker/qgsfeaturepool.cpp
Expand Up @@ -63,7 +63,7 @@ bool QgsFeaturePool::getFeature( QgsFeatureId id, QgsFeature &feature )
return true;
}

QgsFeatureIds QgsFeaturePool::getFeatureIds() const
QgsFeatureIds QgsFeaturePool::allFeatureIds() const
{
return mFeatureIds;
}
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/vector/geometry_checker/qgsfeaturepool.h
Expand Up @@ -64,7 +64,7 @@ class ANALYSIS_EXPORT QgsFeaturePool : public QgsFeatureSink
* Returns the complete set of feature ids in this pool.
* Note that this concerns the features governed by this pool, which are not necessarily all cached.
*/
QgsFeatureIds getFeatureIds() const;
QgsFeatureIds allFeatureIds() const;

/**
* Get all feature ids in the bounding box \a rect. It will use a spatial index to
Expand Down
2 changes: 1 addition & 1 deletion src/analysis/vector/geometry_checker/qgsgeometrycheck.cpp
Expand Up @@ -149,7 +149,7 @@ QMap<QString, QgsFeatureIds> QgsGeometryCheck::allLayerFeatureIds() const
QMap<QString, QgsFeatureIds> featureIds;
for ( QgsFeaturePool *pool : mContext->featurePools )
{
featureIds.insert( pool->layerId(), pool->getFeatureIds() );
featureIds.insert( pool->layerId(), pool->allFeatureIds() );
}
return featureIds;
}
Expand Down
Expand Up @@ -68,7 +68,7 @@ QFuture<void> QgsGeometryChecker::execute( int *totalSteps )
{
if ( check->checkType() <= QgsGeometryCheck::FeatureCheck )
{
*totalSteps += check->isCompatible( it.value()->layer()->geometryType() ) ? it.value()->getFeatureIds().size() : 0;
*totalSteps += check->isCompatible( it.value()->layer()->geometryType() ) ? it.value()->allFeatureIds().size() : 0;
}
else
{
Expand Down

0 comments on commit 1b4e007

Please sign in to comment.