Skip to content

Commit b922166

Browse files
committedOct 13, 2017
Rework internal geometry memory management
Use unique_ptrs wherever possible, and cleanup geometry detachments
1 parent 25d40f3 commit b922166

File tree

9 files changed

+309
-318
lines changed

9 files changed

+309
-318
lines changed
 

‎python/core/geometry/qgsgeometry.sip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ Returns an extruded version of this geometry.
11701170
:rtype: int
11711171
%End
11721172

1173-
QgsGeometry makeValid();
1173+
QgsGeometry makeValid() const;
11741174
%Docstring
11751175
Attempts to make an invalid geometry valid without losing vertices.
11761176

@@ -1225,7 +1225,7 @@ Returns an extruded version of this geometry.
12251225
ValidatorGeos,
12261226
};
12271227

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

0 commit comments

Comments
 (0)
Please sign in to comment.