Skip to content
Permalink
Browse files

Code modernisation

  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 98959f9 commit 8ba78e267682821e004bf95774c01d4341593804
Showing with 2 additions and 3 deletions.
  1. +1 −2 src/app/qgsgeometryvalidationmodel.h
  2. +1 −1 src/app/qgsgeometryvalidationservice.cpp
@@ -62,8 +62,7 @@ class QgsGeometryValidationModel : public QAbstractItemModel
private:
struct FeatureErrors
{
FeatureErrors()
{}
FeatureErrors() = default;

FeatureErrors( QgsFeatureId fid )
: fid( fid )
@@ -45,7 +45,7 @@ void QgsGeometryValidationService::fixError( QgsGeometryCheckError *error, int m

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

QgsVectorLayer *layer;
QgsVectorLayer *layer = nullptr;

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

0 comments on commit 8ba78e2

Please sign in to comment.
You can’t perform that action at this time.