Skip to content
Permalink
Browse files

Fix vectorlayercache test

  • Loading branch information
m-kuhn committed Jan 10, 2014
1 parent f847a26 commit b9c087ef4191e38faba5f61621ac137598a93f33
@@ -22,6 +22,7 @@
QgsVectorLayerCache::QgsVectorLayerCache( QgsVectorLayer* layer, int cacheSize, QObject* parent )
: QObject( parent )
, mLayer( layer )
, mFullCache( false )
{
mCache.setMaxCost( cacheSize );

@@ -150,7 +150,7 @@ class CORE_EXPORT QgsVectorLayerCache : public QObject
* @param featureRequest The request specifying filter and required data.
* @return An iterator over the requested data.
*/
QgsFeatureIterator getFeatures( const QgsFeatureRequest& featureRequest );
QgsFeatureIterator getFeatures( const QgsFeatureRequest& featureRequest = QgsFeatureRequest() );

/**
* Check if a certain feature id is cached.
@@ -145,7 +145,7 @@ void TestVectorLayerCache::testCacheOverflow()
QgsFeature f;

// Verify we get all features, even if there are too many to fit into the cache
QgsFeatureIterator it = mVectorLayerCache->getFeatures( QgsFeatureRequest() );
QgsFeatureIterator it = mVectorLayerCache->getFeatures();

int i = 0;
while ( it.nextFeature( f ) )

0 comments on commit b9c087e

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