Skip to content

Commit c404b80

Browse files
committedJul 17, 2017
Fix uninitialized member (thanks to Coverity)
1 parent b24370d commit c404b80

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed
 

‎src/core/qgsvectorlayerjoininfo.h

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@
3333
class CORE_EXPORT QgsVectorLayerJoinInfo
3434
{
3535
public:
36-
QgsVectorLayerJoinInfo()
37-
: mMemoryCache( false )
38-
, cacheDirty( true )
39-
{}
36+
QgsVectorLayerJoinInfo() = default;
4037

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

121118
//! True if the join is cached in virtual memory
122-
bool mMemoryCache;
119+
bool mMemoryCache = false;
123120

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

132129
//! True if the cached join attributes need to be updated
133-
bool cacheDirty;
130+
bool cacheDirty = true;
134131

135-
bool mDynamicForm;
132+
bool mDynamicForm = false;
136133

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

0 commit comments

Comments
 (0)
Please sign in to comment.