Skip to content

Commit

Permalink
Fix uninitialized member (thanks to Coverity)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 17, 2017
1 parent b24370d commit c404b80
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/core/qgsvectorlayerjoininfo.h
Expand Up @@ -33,10 +33,7 @@
class CORE_EXPORT QgsVectorLayerJoinInfo
{
public:
QgsVectorLayerJoinInfo()
: mMemoryCache( false )
, cacheDirty( true )
{}
QgsVectorLayerJoinInfo() = default;

//! Sets weak reference to the joined layer
void setJoinLayer( QgsVectorLayer *layer ) { mJoinLayerRef = QgsVectorLayerRef( layer ); }
Expand Down Expand Up @@ -119,7 +116,7 @@ class CORE_EXPORT QgsVectorLayerJoinInfo
QString mPrefix;

//! True if the join is cached in virtual memory
bool mMemoryCache;
bool mMemoryCache = false;

//! Subset of fields to use from joined layer. null = use all fields
std::shared_ptr<QStringList> mJoinFieldsSubset;
Expand All @@ -130,9 +127,9 @@ class CORE_EXPORT QgsVectorLayerJoinInfo
friend class QgsVectorLayerFeatureIterator;

//! True if the cached join attributes need to be updated
bool cacheDirty;
bool cacheDirty = true;

bool mDynamicForm;
bool mDynamicForm = false;

//! Cache for joined attributes to provide fast lookup (size is 0 if no memory caching)
QHash< QString, QgsAttributes> cachedAttributes;
Expand Down

0 comments on commit c404b80

Please sign in to comment.