Skip to content

Commit

Permalink
Add missing /Transfer/ annotations to geometry classes
Browse files Browse the repository at this point in the history
(cherry picked from commit 91e2f00)
  • Loading branch information
wonder-sk committed Nov 5, 2016
1 parent 32eaac0 commit 5fed35a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion python/core/geometry/qgsmulticurvev2.sip
Expand Up @@ -18,7 +18,7 @@ class QgsMultiCurveV2: public QgsGeometryCollectionV2
QString asJSON( int precision = 17 ) const;

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

Expand Down
2 changes: 1 addition & 1 deletion python/core/geometry/qgsmultilinestringv2.sip
Expand Up @@ -18,7 +18,7 @@ class QgsMultiLineStringV2: public QgsMultiCurveV2
QString asJSON( int precision = 17 ) const;

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

/** Returns the geometry converted to the more generic curve type QgsMultiCurve
@return the converted geometry. Caller takes ownership*/
Expand Down
2 changes: 1 addition & 1 deletion python/core/geometry/qgsmultipointv2.sip
Expand Up @@ -19,7 +19,7 @@ class QgsMultiPointV2: public QgsGeometryCollectionV2
virtual int nCoordinates() const;

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

protected:

Expand Down
2 changes: 1 addition & 1 deletion python/core/geometry/qgsmultipolygonv2.sip
Expand Up @@ -18,7 +18,7 @@ class QgsMultiPolygonV2: public QgsMultiSurfaceV2


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

/** Returns the geometry converted to the more generic curve type QgsMultiSurface
@return the converted geometry. Caller takes ownership*/
Expand Down
2 changes: 1 addition & 1 deletion python/core/geometry/qgsmultisurfacev2.sip
Expand Up @@ -18,7 +18,7 @@ class QgsMultiSurfaceV2: public QgsGeometryCollectionV2


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

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

0 comments on commit 5fed35a

Please sign in to comment.