Skip to content

Commit

Permalink
Rework internal geometry memory management
Browse files Browse the repository at this point in the history
Use unique_ptrs wherever possible, and cleanup geometry
detachments
  • Loading branch information
nyalldawson committed Oct 13, 2017
1 parent 25d40f3 commit b922166
Show file tree
Hide file tree
Showing 9 changed files with 309 additions and 318 deletions.
4 changes: 2 additions & 2 deletions python/core/geometry/qgsgeometry.sip
Expand Up @@ -1170,7 +1170,7 @@ Returns an extruded version of this geometry.
:rtype: int
%End

QgsGeometry makeValid();
QgsGeometry makeValid() const;
%Docstring
Attempts to make an invalid geometry valid without losing vertices.

Expand Down Expand Up @@ -1225,7 +1225,7 @@ Returns an extruded version of this geometry.
ValidatorGeos,
};

void validateGeometry( QList<QgsGeometry::Error> &errors /Out/, ValidationMethod method = ValidatorQgisInternal );
void validateGeometry( QList<QgsGeometry::Error> &errors /Out/, ValidationMethod method = ValidatorQgisInternal ) const;
%Docstring
Validates geometry and produces a list of geometry errors.
The ``method`` argument dictates which validator to utilize.
Expand Down

0 comments on commit b922166

Please sign in to comment.