Skip to content

Commit 212cd20

Browse files
committed
Transfer ownership of item
1 parent f177228 commit 212cd20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/gui/auto_generated/qgssnaptogridcanvasitem.sip.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Shows a grid on the map canvas given a spatial resolution.
2323
%End
2424
public:
2525

26-
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas );
26+
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas /TransferThis/ );
2727
%Docstring
2828
Will automatically be added to the ``mapCanvas``.
2929
%End

src/gui/qgssnaptogridcanvasitem.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GUI_EXPORT QgsSnapToGridCanvasItem : public QObject, public QgsMapCanvasIt
3939
/**
4040
* Will automatically be added to the \a mapCanvas.
4141
*/
42-
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas );
42+
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas SIP_TRANSFERTHIS );
4343

4444
void paint( QPainter *painter ) override;
4545

0 commit comments

Comments
 (0)