Skip to content

Commit

Permalink
Initialize to nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Sep 18, 2018
1 parent e157a7c commit 6db25b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/analysis/vector/geometry_checker/qgssinglegeometrycheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class ANALYSIS_EXPORT QgsSingleGeometryCheckError
QgsVertexId vertexId() const;

protected:
const QgsSingleGeometryCheck *mCheck;
const QgsSingleGeometryCheck *mCheck = nullptr;
QgsGeometry mGeometry;
QgsPoint mErrorLocation;
QgsVertexId mVertexId;
Expand All @@ -99,7 +99,7 @@ class ANALYSIS_EXPORT QgsGeometryCheckErrorSingle : public QgsGeometryCheckError
bool handleChanges( const QgsGeometryCheck::Changes &changes ) override;

private:
QgsSingleGeometryCheckError *mError;
QgsSingleGeometryCheckError *mError = nullptr;
};

/**
Expand Down

0 comments on commit 6db25b9

Please sign in to comment.