Skip to content
Permalink
Browse files

Fix incorrect /Transfer/ for geometry collection

  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 386d52d commit ffbf93a6573c52662d05ea23ec8dd9e4ebcd1542
Showing with 2 additions and 2 deletions.
  1. +1 −1 python/core/geometry/qgsgeometrycollection.sip
  2. +1 −1 src/core/geometry/qgsgeometrycollection.h
@@ -60,7 +60,7 @@ Adds a geometry and takes ownership. Returns true in case of success.
:rtype: bool
%End

virtual bool insertGeometry( QgsAbstractGeometry *g, int index /Transfer/ );
virtual bool insertGeometry( QgsAbstractGeometry *g /Transfer/, int index );
%Docstring
Inserts a geometry before a specified index and takes ownership. Returns true in case of success.
\param g geometry to insert. Ownership is transferred to the collection.
@@ -69,7 +69,7 @@ class CORE_EXPORT QgsGeometryCollection: public QgsAbstractGeometry
* \param g geometry to insert. Ownership is transferred to the collection.
* \param index position to insert geometry before
*/
virtual bool insertGeometry( QgsAbstractGeometry *g, int index SIP_TRANSFER );
virtual bool insertGeometry( QgsAbstractGeometry *g SIP_TRANSFER, int index );

/** Removes a geometry from the collection.
* \param nr index of geometry to remove

0 comments on commit ffbf93a

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