Skip to content

Commit

Permalink
Make use of implicitly shared geometry
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent 0ef2923 commit 4d37446
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsgeometryvalidationmodel.cpp
Expand Up @@ -83,8 +83,7 @@ QVariant QgsGeometryValidationModel::data( const QModelIndex &index, int role )

case ErrorGeometryRole:
{
// TODO: save as QgsGeometry already in the error
return QgsGeometry( topologyError->geometry()->clone() );
return topologyError->geometry();
}

case FeatureGeometryRole:
Expand Down
Expand Up @@ -43,6 +43,7 @@
#include "qgssettings.h"
#include "qgsscrollarea.h"
#include "qgsgeometrycheckerror.h"
#include "qgsgeometry.h"

QString QgsGeometryCheckerResultTab::sSettingsGroup = QStringLiteral( "/geometry_checker/default_fix_methods/" );

Expand Down

0 comments on commit 4d37446

Please sign in to comment.