Skip to content

Commit

Permalink
Transfer ownership of item
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 26, 2018
1 parent f177228 commit 212cd20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/gui/auto_generated/qgssnaptogridcanvasitem.sip.in
Expand Up @@ -23,7 +23,7 @@ Shows a grid on the map canvas given a spatial resolution.
%End
public:

QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas );
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas /TransferThis/ );
%Docstring
Will automatically be added to the ``mapCanvas``.
%End
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgssnaptogridcanvasitem.h
Expand Up @@ -39,7 +39,7 @@ class GUI_EXPORT QgsSnapToGridCanvasItem : public QObject, public QgsMapCanvasIt
/**
* Will automatically be added to the \a mapCanvas.
*/
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas );
QgsSnapToGridCanvasItem( QgsMapCanvas *mapCanvas SIP_TRANSFERTHIS );

void paint( QPainter *painter ) override;

Expand Down

0 comments on commit 212cd20

Please sign in to comment.