Fix some Coverity uninitialized member warnings

This commit is contained in:
Nyall Dawson 2018-04-02 08:07:38 +10:00
parent 2b04c813ba
commit cf905c9f32
2 changed files with 6 additions and 6 deletions

View File

@ -47,7 +47,7 @@ class QgsReportOrganizerWidget: public QgsPanelWidget, private Ui::QgsReportOrga
QgsReport *mReport = nullptr;
QgsReportSectionModel *mSectionModel = nullptr;
QgsMessageBar *mMessageBar;
QgsMessageBar *mMessageBar = nullptr;
QgsLayoutDesignerDialog *mDesigner = nullptr;
QWidget *mConfigWidget = nullptr;

View File

@ -131,26 +131,26 @@ class APP_EXPORT QgsSnappingWidget : public QWidget
QAction *mEnabledAction = nullptr;
QToolButton *mModeButton = nullptr;
QAction *mModeAction; // hide widget does not work on toolbar, action needed
QAction *mModeAction = nullptr; // hide widget does not work on toolbar, action needed
QAction *mAllLayersAction = nullptr;
QAction *mActiveLayerAction = nullptr;
QAction *mAdvancedModeAction = nullptr;
QAction *mEditAdvancedConfigAction = nullptr;
QToolButton *mTypeButton = nullptr;
QAction *mTypeAction; // hide widget does not work on toolbar, action needed
QAction *mTypeAction = nullptr; // hide widget does not work on toolbar, action needed
QAction *mVertexAction = nullptr;
QAction *mSegmentAction = nullptr;
QAction *mVertexAndSegmentAction = nullptr;
QDoubleSpinBox *mToleranceSpinBox = nullptr;
QAction *mToleranceAction; // hide widget does not work on toolbar, action needed
QAction *mToleranceAction = nullptr; // hide widget does not work on toolbar, action needed
QComboBox *mUnitsComboBox = nullptr;
QAction *mUnitAction; // hide widget does not work on toolbar, action needed
QAction *mUnitAction = nullptr; // hide widget does not work on toolbar, action needed
QAction *mTopologicalEditingAction = nullptr;
QAction *mIntersectionSnappingAction = nullptr;
QAction *mEnableTracingAction = nullptr;
QgsDoubleSpinBox *mTracingOffsetSpinBox = nullptr;
QTreeView *mLayerTreeView = nullptr;
QgsFloatingWidget *mAdvancedConfigContainer;
QgsFloatingWidget *mAdvancedConfigContainer = nullptr;
void cleanGroup( QgsLayerTreeNode *node );
};