Skip to content

Commit 434ee39

Browse files
committed
Fix some Coverity uninitialized member warnings
(cherry-picked from cf905c9)
1 parent 3db0569 commit 434ee39

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/app/layout/qgsreportorganizerwidget.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class QgsReportOrganizerWidget: public QgsPanelWidget, private Ui::QgsReportOrga
4747

4848
QgsReport *mReport = nullptr;
4949
QgsReportSectionModel *mSectionModel = nullptr;
50-
QgsMessageBar *mMessageBar;
50+
QgsMessageBar *mMessageBar = nullptr;
5151
QgsLayoutDesignerDialog *mDesigner = nullptr;
5252
QWidget *mConfigWidget = nullptr;
5353

src/app/qgssnappingwidget.h

+5-5
Original file line numberDiff line numberDiff line change
@@ -131,26 +131,26 @@ class APP_EXPORT QgsSnappingWidget : public QWidget
131131

132132
QAction *mEnabledAction = nullptr;
133133
QToolButton *mModeButton = nullptr;
134-
QAction *mModeAction; // hide widget does not work on toolbar, action needed
134+
QAction *mModeAction = nullptr; // hide widget does not work on toolbar, action needed
135135
QAction *mAllLayersAction = nullptr;
136136
QAction *mActiveLayerAction = nullptr;
137137
QAction *mAdvancedModeAction = nullptr;
138138
QAction *mEditAdvancedConfigAction = nullptr;
139139
QToolButton *mTypeButton = nullptr;
140-
QAction *mTypeAction; // hide widget does not work on toolbar, action needed
140+
QAction *mTypeAction = nullptr; // hide widget does not work on toolbar, action needed
141141
QAction *mVertexAction = nullptr;
142142
QAction *mSegmentAction = nullptr;
143143
QAction *mVertexAndSegmentAction = nullptr;
144144
QDoubleSpinBox *mToleranceSpinBox = nullptr;
145-
QAction *mToleranceAction; // hide widget does not work on toolbar, action needed
145+
QAction *mToleranceAction = nullptr; // hide widget does not work on toolbar, action needed
146146
QComboBox *mUnitsComboBox = nullptr;
147-
QAction *mUnitAction; // hide widget does not work on toolbar, action needed
147+
QAction *mUnitAction = nullptr; // hide widget does not work on toolbar, action needed
148148
QAction *mTopologicalEditingAction = nullptr;
149149
QAction *mIntersectionSnappingAction = nullptr;
150150
QAction *mEnableTracingAction = nullptr;
151151
QgsDoubleSpinBox *mTracingOffsetSpinBox = nullptr;
152152
QTreeView *mLayerTreeView = nullptr;
153-
QgsFloatingWidget *mAdvancedConfigContainer;
153+
QgsFloatingWidget *mAdvancedConfigContainer = nullptr;
154154

155155
void cleanGroup( QgsLayerTreeNode *node );
156156
};

0 commit comments

Comments
 (0)