Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix valgrind jump on uninitialised values warnings
  • Loading branch information
nyalldawson committed Aug 8, 2017
1 parent 34e6a61 commit 425aa30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/core/qgsvectorlayercache.cpp
Expand Up @@ -22,7 +22,6 @@
QgsVectorLayerCache::QgsVectorLayerCache( QgsVectorLayer *layer, int cacheSize, QObject *parent )
: QObject( parent )
, mLayer( layer )
, mFullCache( false )
{
mCache.setMaxCost( cacheSize );

Expand Down
4 changes: 2 additions & 2 deletions src/core/qgsvectorlayercache.h
Expand Up @@ -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;
Expand Down

0 comments on commit 425aa30

Please sign in to comment.