Skip to content

Commit 45fb6e9

Browse files
committed
Fix coverity uninitialized member warnings
1 parent fa5a831 commit 45fb6e9

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/app/qgsattributesformproperties.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ class APP_EXPORT QgsAttributesFormProperties : public QWidget, private Ui_QgsAtt
203203
void loadAttributeRelationEdit();
204204
void storeAttributeRelationEdit( );
205205

206-
QgsEditFormConfig::PythonInitCodeSource mInitCodeSource;
206+
QgsEditFormConfig::PythonInitCodeSource mInitCodeSource = QgsEditFormConfig::CodeSourceNone;
207207
QString mInitFunction;
208208
QString mInitFilePath;
209209
QString mInitCode;
@@ -268,7 +268,7 @@ class DnDTree : public QTreeWidget
268268

269269
private:
270270
QgsVectorLayer *mLayer = nullptr;
271-
Type mType;
271+
Type mType = DnDTree::Type::Drag;
272272
};
273273

274274

src/app/qgssourcefieldsproperties.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class APP_EXPORT QgsSourceFieldsProperties : public QWidget, private Ui_QgsSourc
8585
};
8686

8787
private:
88-
Ui::QgsSourceFieldsProperties *ui;
88+
Ui::QgsSourceFieldsProperties *ui = nullptr;
8989
void updateFieldRenamingStatus();
9090

9191
signals:

src/gui/qgsattributeformrelationeditorwidget.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ class GUI_EXPORT QgsAttributeFormRelationEditorWidget : public QgsAttributeFormW
4545
virtual QString currentFilterExpression() const override;
4646

4747
private:
48-
QgsRelationAggregateSearchWidgetWrapper *mSearchWidget;
49-
QgsRelationWidgetWrapper *mWrapper;
48+
QgsRelationAggregateSearchWidgetWrapper *mSearchWidget = nullptr;
49+
QgsRelationWidgetWrapper *mWrapper = nullptr;
5050
};
5151

5252
#endif // QGSATTRIBUTEFORMRELATIONEDITORWIDGET_H

0 commit comments

Comments
 (0)