Skip to content

Commit

Permalink
Fix incorrect /Transfer/ for geometry collection
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 25, 2017
1 parent 386d52d commit ffbf93a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/core/geometry/qgsgeometrycollection.sip
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsgeometrycollection.h
Expand Up @@ -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
Expand Down

0 comments on commit ffbf93a

Please sign in to comment.