Skip to content

Commit

Permalink
Code modernisation
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 98959f9 commit 8ba78e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsgeometryvalidationmodel.h
Expand Up @@ -62,8 +62,7 @@ class QgsGeometryValidationModel : public QAbstractItemModel
private:
struct FeatureErrors
{
FeatureErrors()
{}
FeatureErrors() = default;

FeatureErrors( QgsFeatureId fid )
: fid( fid )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsgeometryvalidationservice.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit 8ba78e2

Please sign in to comment.