Skip to content

Commit 6db25b9

Browse files
committedSep 18, 2018
Initialize to nullptr
1 parent e157a7c commit 6db25b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/analysis/vector/geometry_checker/qgssinglegeometrycheck.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class ANALYSIS_EXPORT QgsSingleGeometryCheckError
7272
QgsVertexId vertexId() const;
7373

7474
protected:
75-
const QgsSingleGeometryCheck *mCheck;
75+
const QgsSingleGeometryCheck *mCheck = nullptr;
7676
QgsGeometry mGeometry;
7777
QgsPoint mErrorLocation;
7878
QgsVertexId mVertexId;
@@ -99,7 +99,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckErrorSingle : public QgsGeometryCheckError
9999
bool handleChanges( const QgsGeometryCheck::Changes &changes ) override;
100100

101101
private:
102-
QgsSingleGeometryCheckError *mError;
102+
QgsSingleGeometryCheckError *mError = nullptr;
103103
};
104104

105105
/**

0 commit comments

Comments
 (0)
Please sign in to comment.