Skip to content

Commit

Permalink
[gps] Add missing Transfer annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 13, 2020
1 parent e9cb34e commit a0c455b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion python/core/auto_generated/gps/qgsnmeaconnection.sip.in
Expand Up @@ -22,9 +22,11 @@ Evaluates NMEA sentences coming from a GPS device
%End
public:

QgsNmeaConnection( QIODevice *device );
QgsNmeaConnection( QIODevice *device /Transfer/ );
%Docstring
Constructs a QgsNmeaConnection with given ``device``.

Ownership of ``device`` is transferred to the connection.
%End

protected slots:
Expand Down
6 changes: 4 additions & 2 deletions src/core/gps/qgsnmeaconnection.h
Expand Up @@ -32,9 +32,11 @@ class CORE_EXPORT QgsNmeaConnection: public QgsGpsConnection
public:

/**
* \brief Constructs a QgsNmeaConnection with given \a device.
* Constructs a QgsNmeaConnection with given \a device.
*
* Ownership of \a device is transferred to the connection.
*/
QgsNmeaConnection( QIODevice *device );
QgsNmeaConnection( QIODevice *device SIP_TRANSFER );

protected slots:
//! Parse available data source content
Expand Down

0 comments on commit a0c455b

Please sign in to comment.