Skip to content

Commit

Permalink
Merge pull request #3460 from mhugo/fix_sip
Browse files Browse the repository at this point in the history
Fix some /Transfer/ annotations
  • Loading branch information
Hugo Mercier committed Sep 23, 2016
2 parents eefeef5 + 67c05b5 commit 911af05
Show file tree
Hide file tree
Showing 16 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions python/analysis/interpolation/DualEdgeTriangulation.sip
Expand Up @@ -9,9 +9,9 @@ class DualEdgeTriangulation: Triangulation
virtual ~DualEdgeTriangulation();
void setDecorator( Triangulation* d );
/** Adds a line (e.g. a break-, structure- or an isoline) to the triangulation. The class takes ownership of the line object and its points*/
void addLine( Line3D* line, bool breakline );
void addLine( Line3D* line /Transfer/, bool breakline );
/** Adds a point to the triangulation and returns the number of this point in case of success or -100 in case of failure*/
int addPoint( Point3D* p );
int addPoint( Point3D* p /Transfer/);
/** Performs a consistency check, remove this later*/
virtual void performConsistencyTest();
/** Calculates the normal at a point on the surface*/
Expand Down
2 changes: 1 addition & 1 deletion python/core/geometry/qgsmulticurve.sip
Expand Up @@ -18,7 +18,7 @@ class QgsMultiCurve: public QgsGeometryCollection
QString asJSON( int precision = 17 ) const;

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

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

/** Adds a geometry and takes ownership. Returns true in case of success*/
virtual bool addGeometry( QgsAbstractGeometry* g );
virtual bool addGeometry( QgsAbstractGeometry* 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/qgsmultipoint.sip
Expand Up @@ -18,7 +18,7 @@ class QgsMultiPointV2: public QgsGeometryCollection


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

virtual QgsAbstractGeometry* boundary() const /Factory/;

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


/** Adds a geometry and takes ownership. Returns true in case of success*/
virtual bool addGeometry( QgsAbstractGeometry* g );
virtual bool addGeometry( QgsAbstractGeometry* 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/qgsmultisurface.sip
Expand Up @@ -18,7 +18,7 @@ class QgsMultiSurface: public QgsGeometryCollection


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

virtual QgsAbstractGeometry* boundary() const /Factory/;

Expand Down
2 changes: 1 addition & 1 deletion python/core/qgsvectorlayercache.sip
Expand Up @@ -76,7 +76,7 @@ class QgsVectorLayerCache : QObject
*
* @param cacheIndex The cache index to add.
*/
void addCacheIndex( QgsAbstractCacheIndex *cacheIndex );
void addCacheIndex( QgsAbstractCacheIndex *cacheIndex /Transfer/ );

/**
* Query this VectorLayerCache for features.
Expand Down
2 changes: 1 addition & 1 deletion python/gui/attributetable/qgsattributetableview.sip
Expand Up @@ -14,7 +14,7 @@ class QgsAttributeTableView : QTableView
* @brief setFeatureSelectionManager
* @param featureSelectionManager We will take ownership
*/
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager );
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager /Transfer/ );

/**
* This event filter is installed on the verticalHeader to intercept mouse press and release
Expand Down
2 changes: 1 addition & 1 deletion python/gui/attributetable/qgsfeaturelistview.sip
Expand Up @@ -79,7 +79,7 @@ class QgsFeatureListView : QListView
* @brief setFeatureSelectionManager
* @param featureSelectionManager We will take ownership
*/
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager );
void setFeatureSelectionManager( QgsIFeatureSelectionManager* featureSelectionManager /Transfer/ );

protected:
virtual void mouseMoveEvent( QMouseEvent *event );
Expand Down
10 changes: 5 additions & 5 deletions python/gui/qgisinterface.sip
Expand Up @@ -79,7 +79,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the plugin toolbar
virtual void removeToolBarIcon( QAction *qAction ) = 0;
Expand All @@ -92,7 +92,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addRasterToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addRasterToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Add an icon to the Raster toolbar
virtual int addRasterToolBarIcon( QAction *qAction ) = 0;
Expand All @@ -111,7 +111,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addVectorToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addVectorToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the Vector toolbar
virtual void removeVectorToolBarIcon( QAction *qAction ) = 0;
Expand All @@ -127,7 +127,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addDatabaseToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addDatabaseToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the Database toolbar
virtual void removeDatabaseToolBarIcon( QAction *qAction ) = 0;
Expand All @@ -143,7 +143,7 @@ class QgisInterface : QObject
* @param widget widget to add. The toolbar will take ownership of this widget
* @return the QAction you can use to remove this widget from the toolbar
*/
virtual QAction* addWebToolBarWidget( QWidget* widget ) = 0;
virtual QAction* addWebToolBarWidget( QWidget* widget /Transfer/ ) = 0;

//! Remove an action (icon) from the Web toolbar
virtual void removeWebToolBarIcon( QAction *qAction ) = 0;
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgsgeometryrubberband.sip
Expand Up @@ -54,7 +54,7 @@ class QgsGeometryRubberBand: QgsMapCanvasItem
~QgsGeometryRubberBand();

/** Sets geometry (takes ownership). Geometry is expected to be in map coordinates */
void setGeometry( QgsAbstractGeometry* geom );
void setGeometry( QgsAbstractGeometry* geom /Transfer/ );
/** Returns a pointer to the geometry*/
const QgsAbstractGeometry* geometry();
/** Moves vertex to new position (in map coordinates)*/
Expand Down
4 changes: 2 additions & 2 deletions python/gui/qgsmaptooledit.sip
Expand Up @@ -35,9 +35,9 @@ class QgsMapToolEdit: QgsMapTool
* @param geometryType
* @param alternativeBand if true, rubber band will be set with more transparency and a dash pattern. defaut is false.
*/
QgsRubberBand* createRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false );
QgsRubberBand* createRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) /Factory/;

QgsGeometryRubberBand* createGeometryRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) const;
QgsGeometryRubberBand* createGeometryRubberBand( QgsWkbTypes::GeometryType geometryType = QgsWkbTypes::LineGeometry, bool alternativeBand = false ) const /Factory/;

/** Returns the current vector layer of the map canvas or 0*/
QgsVectorLayer* currentVectorLayer();
Expand Down
4 changes: 2 additions & 2 deletions python/gui/symbology-ng/qgs25drendererwidget.sip
Expand Up @@ -25,14 +25,14 @@ class Qgs25DRendererWidget : QgsRendererWidget
* @param style
* @param renderer the mask renderer (will take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer /Transfer/ ) /Factory/;

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
*/
Qgs25DRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );
Qgs25DRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer /Transfer/ );

QgsFeatureRenderer* renderer();

Expand Down
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgs25drendererwidget.h
Expand Up @@ -32,14 +32,14 @@ class GUI_EXPORT Qgs25DRendererWidget : public QgsRendererWidget, Ui::Qgs25DRend
/** Static creation method
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
Qgs25DRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

Expand Down
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgsheatmaprendererwidget.h
Expand Up @@ -32,14 +32,14 @@ class GUI_EXPORT QgsHeatmapRendererWidget : public QgsRendererWidget, private Ui
/** Static creation method
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
QgsHeatmapRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

Expand Down
4 changes: 2 additions & 2 deletions src/gui/symbology-ng/qgsinvertedpolygonrendererwidget.h
Expand Up @@ -34,14 +34,14 @@ class GUI_EXPORT QgsInvertedPolygonRendererWidget : public QgsRendererWidget, pr
/** Static creation method
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
static QgsRendererWidget* create( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

/** Constructor
* @param layer the layer where this renderer is applied
* @param style
* @param renderer the mask renderer (will take ownership)
* @param renderer the mask renderer (will not take ownership)
*/
QgsInvertedPolygonRendererWidget( QgsVectorLayer* layer, QgsStyle* style, QgsFeatureRenderer* renderer );

Expand Down

0 comments on commit 911af05

Please sign in to comment.