Skip to content

Commit 91d9e1f

Browse files
author
mhugent
committed
Add TransferThis to annotation python constructors
git-svn-id: http://svn.osgeo.org/qgis/trunk@13317 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0bc85b2 commit 91d9e1f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/gui/qgsformannotationitem.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class QgsFormAnnotationItem: QObject, QgsAnnotationItem
55
%End
66

77
public:
8-
QgsFormAnnotationItem( QgsMapCanvas* canvas, QgsVectorLayer* vlayer = 0, bool hasFeature = false, int feature = 0);
8+
QgsFormAnnotationItem( QgsMapCanvas* canvas /TransferThis/, QgsVectorLayer* vlayer = 0, bool hasFeature = false, int feature = 0);
99
~QgsFormAnnotationItem();
1010

1111
void paint( QPainter * painter );

python/gui/qgstextannotationitem.sip

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class QgsTextAnnotationItem: QgsAnnotationItem
44
#include <qgstextannotationitem.h>
55
%End
66
public:
7-
QgsTextAnnotationItem( QgsMapCanvas* canvas );
7+
QgsTextAnnotationItem( QgsMapCanvas* canvas /TransferThis/ );
88
~QgsTextAnnotationItem();
99

1010
/**Returns document (caller takes ownership)*/

0 commit comments

Comments
 (0)