Skip to content

Commit 5fed35a

Browse files
committed
Add missing /Transfer/ annotations to geometry classes
(cherry picked from commit 91e2f00)
1 parent 32eaac0 commit 5fed35a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

python/core/geometry/qgsmulticurvev2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class QgsMultiCurveV2: public QgsGeometryCollectionV2
1818
QString asJSON( int precision = 17 ) const;
1919

2020
/** Adds a geometry and takes ownership. Returns true in case of success*/
21-
virtual bool addGeometry( QgsAbstractGeometryV2* g );
21+
virtual bool addGeometry( QgsAbstractGeometryV2* g /Transfer/ );
2222
/** Returns a geometry without curves. Caller takes ownership*/
2323
QgsAbstractGeometryV2* segmentize() const /Factory/;
2424

python/core/geometry/qgsmultilinestringv2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class QgsMultiLineStringV2: public QgsMultiCurveV2
1818
QString asJSON( int precision = 17 ) const;
1919

2020
/** Adds a geometry and takes ownership. Returns true in case of success*/
21-
virtual bool addGeometry( QgsAbstractGeometryV2* g );
21+
virtual bool addGeometry( QgsAbstractGeometryV2* g /Transfer/ );
2222

2323
/** Returns the geometry converted to the more generic curve type QgsMultiCurve
2424
@return the converted geometry. Caller takes ownership*/

python/core/geometry/qgsmultipointv2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class QgsMultiPointV2: public QgsGeometryCollectionV2
1919
virtual int nCoordinates() const;
2020

2121
/** Adds a geometry and takes ownership. Returns true in case of success*/
22-
virtual bool addGeometry( QgsAbstractGeometryV2* g );
22+
virtual bool addGeometry( QgsAbstractGeometryV2* g /Transfer/ );
2323

2424
protected:
2525

python/core/geometry/qgsmultipolygonv2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class QgsMultiPolygonV2: public QgsMultiSurfaceV2
1818

1919

2020
/** Adds a geometry and takes ownership. Returns true in case of success*/
21-
virtual bool addGeometry( QgsAbstractGeometryV2* g );
21+
virtual bool addGeometry( QgsAbstractGeometryV2* g /Transfer/ );
2222

2323
/** Returns the geometry converted to the more generic curve type QgsMultiSurface
2424
@return the converted geometry. Caller takes ownership*/

python/core/geometry/qgsmultisurfacev2.sip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class QgsMultiSurfaceV2: public QgsGeometryCollectionV2
1818

1919

2020
/** Adds a geometry and takes ownership. Returns true in case of success*/
21-
virtual bool addGeometry( QgsAbstractGeometryV2* g );
21+
virtual bool addGeometry( QgsAbstractGeometryV2* g /Transfer/ );
2222

2323
/** Returns a geometry without curves. Caller takes ownership*/
2424
QgsAbstractGeometryV2* segmentize() const /Factory/;

0 commit comments

Comments
 (0)