Skip to content

Commit

Permalink
Add TransferThis to annotation python constructors
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@13317 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Apr 16, 2010
1 parent 9152a82 commit 2d068e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/gui/qgsformannotationitem.sip
Expand Up @@ -5,7 +5,7 @@ class QgsFormAnnotationItem: QObject, QgsAnnotationItem
%End

public:
QgsFormAnnotationItem( QgsMapCanvas* canvas, QgsVectorLayer* vlayer = 0, bool hasFeature = false, int feature = 0);
QgsFormAnnotationItem( QgsMapCanvas* canvas /TransferThis/, QgsVectorLayer* vlayer = 0, bool hasFeature = false, int feature = 0);
~QgsFormAnnotationItem();

void paint( QPainter * painter );
Expand Down
2 changes: 1 addition & 1 deletion python/gui/qgstextannotationitem.sip
Expand Up @@ -4,7 +4,7 @@ class QgsTextAnnotationItem: QgsAnnotationItem
#include <qgstextannotationitem.h>
%End
public:
QgsTextAnnotationItem( QgsMapCanvas* canvas );
QgsTextAnnotationItem( QgsMapCanvas* canvas /TransferThis/ );
~QgsTextAnnotationItem();

/**Returns document (caller takes ownership)*/
Expand Down

0 comments on commit 2d068e2

Please sign in to comment.