Skip to content

Commit

Permalink
Fix coverity uninitialized member warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 5, 2017
1 parent fa5a831 commit 45fb6e9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/app/qgsattributesformproperties.h
Expand Up @@ -203,7 +203,7 @@ class APP_EXPORT QgsAttributesFormProperties : public QWidget, private Ui_QgsAtt
void loadAttributeRelationEdit();
void storeAttributeRelationEdit( );

QgsEditFormConfig::PythonInitCodeSource mInitCodeSource;
QgsEditFormConfig::PythonInitCodeSource mInitCodeSource = QgsEditFormConfig::CodeSourceNone;
QString mInitFunction;
QString mInitFilePath;
QString mInitCode;
Expand Down Expand Up @@ -268,7 +268,7 @@ class DnDTree : public QTreeWidget

private:
QgsVectorLayer *mLayer = nullptr;
Type mType;
Type mType = DnDTree::Type::Drag;
};


Expand Down
2 changes: 1 addition & 1 deletion src/app/qgssourcefieldsproperties.h
Expand Up @@ -85,7 +85,7 @@ class APP_EXPORT QgsSourceFieldsProperties : public QWidget, private Ui_QgsSourc
};

private:
Ui::QgsSourceFieldsProperties *ui;
Ui::QgsSourceFieldsProperties *ui = nullptr;
void updateFieldRenamingStatus();

signals:
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgsattributeformrelationeditorwidget.h
Expand Up @@ -45,8 +45,8 @@ class GUI_EXPORT QgsAttributeFormRelationEditorWidget : public QgsAttributeFormW
virtual QString currentFilterExpression() const override;

private:
QgsRelationAggregateSearchWidgetWrapper *mSearchWidget;
QgsRelationWidgetWrapper *mWrapper;
QgsRelationAggregateSearchWidgetWrapper *mSearchWidget = nullptr;
QgsRelationWidgetWrapper *mWrapper = nullptr;
};

#endif // QGSATTRIBUTEFORMRELATIONEDITORWIDGET_H

0 comments on commit 45fb6e9

Please sign in to comment.