Skip to content
Permalink
Browse files

Fix valgrind jump on uninitialised values warnings

  • Loading branch information
nyalldawson committed Aug 8, 2017
1 parent 34e6a61 commit 425aa30fe916dd6b33add484cb547bf2c60f49c7
Showing with 2 additions and 3 deletions.
  1. +0 −1 src/core/qgsvectorlayercache.cpp
  2. +2 −2 src/core/qgsvectorlayercache.h
@@ -22,7 +22,6 @@
QgsVectorLayerCache::QgsVectorLayerCache( QgsVectorLayer *layer, int cacheSize, QObject *parent )
: QObject( parent )
, mLayer( layer )
, mFullCache( false )
{
mCache.setMaxCost( cacheSize );

@@ -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;

0 comments on commit 425aa30

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