Fix incorrect /Transfer/ for geometry collection

This commit is contained in:
Nyall Dawson 2017-09-25 21:19:43 +10:00
parent 386d52d873
commit ffbf93a657
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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