Fix valgrind jump on uninitialised values warnings

This commit is contained in:
Nyall Dawson 2017-08-08 16:41:42 +10:00
parent 34e6a6126c
commit 425aa30fe9
2 changed files with 2 additions and 3 deletions

View File

@ -22,7 +22,6 @@
QgsVectorLayerCache::QgsVectorLayerCache( QgsVectorLayer *layer, int cacheSize, QObject *parent )
: QObject( parent )
, mLayer( layer )
, mFullCache( false )
{
mCache.setMaxCost( cacheSize );

View File

@ -383,8 +383,8 @@ class CORE_EXPORT QgsVectorLayerCache : public QObject
QgsVectorLayer *mLayer = nullptr;
QCache< QgsFeatureId, QgsCachedFeature > mCache;
bool mCacheGeometry;
bool mFullCache;
bool mCacheGeometry = true;
bool mFullCache = false;
QList<QgsAbstractCacheIndex *> mCacheIndices;
QgsAttributeList mCachedAttributes;