Skip to content

Commit 8ba78e2

Browse files
committed
Code modernisation
1 parent 98959f9 commit 8ba78e2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/app/qgsgeometryvalidationmodel.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ class QgsGeometryValidationModel : public QAbstractItemModel
6262
private:
6363
struct FeatureErrors
6464
{
65-
FeatureErrors()
66-
{}
65+
FeatureErrors() = default;
6766

6867
FeatureErrors( QgsFeatureId fid )
6968
: fid( fid )

src/app/qgsgeometryvalidationservice.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void QgsGeometryValidationService::fixError( QgsGeometryCheckError *error, int m
4545

4646
QgsFeaturePool *featurePool = mFeaturePools.value( error->layerId() );
4747

48-
QgsVectorLayer *layer;
48+
QgsVectorLayer *layer = nullptr;
4949

5050
if ( featurePool )
5151
layer = featurePool->layer();

0 commit comments

Comments
 (0)