Skip to content

Commit 453eba3

Browse files
committed
Fix pointer initalization
1 parent 191f2a7 commit 453eba3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/qgsnewauxiliarylayerdialog.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class APP_EXPORT QgsNewAuxiliaryLayerDialog: public QDialog, private Ui::QgsNewA
4747
private:
4848
void accept() override;
4949

50-
QgsVectorLayer *mLayer;
50+
QgsVectorLayer *mLayer = nullptr;
5151
};
5252

5353
#endif

src/core/qgsauxiliarystorage.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class CORE_EXPORT QgsAuxiliaryLayer : public QgsVectorLayer
204204

205205
private:
206206
QgsVectorLayerJoinInfo mJoinInfo;
207-
const QgsVectorLayer *mLayer;
207+
const QgsVectorLayer *mLayer = nullptr;
208208
};
209209

210210

0 commit comments

Comments
 (0)