Skip to content
Permalink
Browse files

Add missing /Transfer/ annotations to geometry classes

(cherry picked from commit 91e2f00)
  • Loading branch information
wonder-sk committed Nov 5, 2016
1 parent 32eaac0 commit 5fed35a84c81397be7c5517283094fc4c7e12015
@@ -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/;

@@ -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*/
@@ -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:

@@ -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*/
@@ -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/;

0 comments on commit 5fed35a

Please sign in to comment.
You can’t perform that action at this time.